/*! For license information please see sdk.d4ee574ce72cb26fbe235eac540be8dbf938e9c2.js.LICENSE.txt */ !function(){var e,t,n,s,r={418:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var s=n(34576),r=n(20259),i=(0,s.EW)(()=>{var e,t,n,s,i=Number(null==(e=r.bK.value)||null==(t=e.app)?void 0:t.consentDuration)||31622400;return{durationInSeconds:i,durationInDays:i/86400,deniedDurationInSeconds:Number(null==(n=r.bK.value)||null==(s=n.app)?void 0:s.deniedConsentDuration)||void 0}})},517:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var s=n(58168),r=n(97071),i=n(20152),o=n(74283),a=n(51373),u=n(33207);class l{update(e){var{customVariables:t={},requiredVendors:n=[],isConsentRequired:s,userStatus:r,regulation:i,allowedCategories:o,vendorIdsMap:a}=e;for(var u of(window.didomiState={},Object.keys(t)))window.didomiState[u]=t[u];"complete"!==document.readyState&&window.addEventListener("load",()=>this.enableTags({customVariables:t,requiredVendors:n,isConsentRequired:s,userStatus:r,regulation:i,allowedCategories:o,vendorIdsMap:a})),this.enableTags({customVariables:t,requiredVendors:n,isConsentRequired:s,userStatus:r,regulation:i,allowedCategories:o,vendorIdsMap:a})}enableTags(e){var t,{customVariables:n,requiredVendors:s,isConsentRequired:i,userStatus:l,regulation:d,allowedCategories:c,vendorIdsMap:p}=e,{vendorsByStatusWithPurposes:v,vendorsByStatusWithoutPurposes:h}=(0,u.R)({requiredVendors:s,isConsentRequired:i,userStatus:l,processingRules:"mixed"===(null==d||null==(t=d.group)?void 0:t.name)?["legitimate_interest"]:["consent","legitimate_interest"]}),f=[{attribute:"data-category",values:c},{attribute:"data-vendor",values:(0,r.$)([...v.allowed,...v.allowed.map(e=>p[(0,o.b)(e)])])},{attribute:"data-vendor-raw",values:(0,r.$)([...h.allowed,...h.allowed.map(e=>p[(0,o.b)(e)])])},{attribute:"data-purposes",attributeIsList:!0,values:(0,a.V)(n.didomiPurposesEnabled)}],g={gdpr:n.didomiGDPRApplies,gdpr_consent:n.didomiIABConsent,regulation_name:n.didomiRegulationName};this.enableTagsByName('script[type="didomi/javascript"]',"script",f,g),this.enableTagsByName('script[type="didomi/html"]',"div",f,g)}enableTagsByName(e,t,n,r){var i=this,o=document.querySelectorAll(e),a=function(e){var o=!0;"true"!==e.getAttribute("data-processed")&&(n.filter(t=>{var{attribute:n}=t;return e.hasAttribute(n)}).map(t=>{var{attribute:n,attributeIsList:a,values:u}=t;if("immediate"===e.getAttribute("data-loading")||u.length>0){var l=e.getAttribute(n);if("data-vendor"===n&&(r=(0,s.A)({},r,i.addVendorsRelatedMacros(-1!==u.indexOf(String(l))))),"data-vendor-raw"===n&&(r=(0,s.A)({},r,i.addVendorsRawRelatedMacros(-1!==u.indexOf(String(l))))),"immediate"!==e.getAttribute("data-loading"))if(!0===a){var d=String(l).split(","),c=!0;for(var p of d)p.length>0&&(c=c&&-1!==u.indexOf(String(p)));!1===c&&(o=!1)}else-1===u.indexOf(String(l))&&(o=!1)}else o=!1;return null}),!0===o&&i.replaceTags(t,e,r))};for(var u of o)a(u)}replaceMacros(e,t){for(var n of Object.keys(e)){var s=new RegExp("{"+n+"}","gi");t=t.replace(s,e[n])}return t}replaceTags(e,t,n){var s=document.createElement(e),r=this.replaceMacros(n,t.innerHTML);if("script"===e){var o;s.type="text/javascript";var a=null==(o=i.U.value)?void 0:o.nonce;a&&s.setAttribute("nonce",a),s.textContent=r}else s.innerHTML=r;for(var u of t.attributes)"type"!==u.name&&s.setAttribute(u.name,u.value);t.parentNode.insertBefore(s,t),t.setAttribute("data-processed","true")}addVendorsRelatedMacros(e){return{gdpr_consent_vendor:e?1:0,gdpr_consent_vendor_boolean:e}}addVendorsRawRelatedMacros(e){return{gdpr_consent_vendor_raw:e?1:0,gdpr_consent_vendor_boolean_raw:e}}}},1081:function(e,t,n){"use strict";function s(e,t){return e===t}n.d(t,{Mz:function(){return r}});var r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:s,n=null,r=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var s=t.length,r=0;r[...new Set([...r.C.value||[],...i.D.value||[],...o.K.value||[]])])},3330:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var s=n(16691),r=()=>{var e=(new Date).toISOString();return{user_id:(0,s.A)(),created:e,updated:e,vendors:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},version:null}}},4609:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var s=n(20259),r=n(34576),i=e=>(e=>{var t=e.chrome,n=e.navigator,s=n.vendor,r=void 0!==e.opr,i=n.userAgent.indexOf("Edge")>-1;return!n.userAgent.match("CriOS")&&null!=t&&"Google Inc."===s&&!1===r&&!1===i})(e)&&((e=>{var t=/Chrome\/([0-9]{2,3})\./i.exec(e);return t?parseInt(t[1],10):null})(e.navigator.userAgent)||0)>=79,o=n(87127),a=(0,r.EW)(()=>{var e,t,n,r,a,u,l,d,c=null==(e=s.bK.value)?void 0:e.cookies;return{secure:!0===(null==c?void 0:c.secure),sameSiteRequired:i(window),sources:{cookies:!1!==(null==c||null==(t=c.storageSources)?void 0:t.cookies),localStorage:!1!==(null==c||null==(n=c.storageSources)?void 0:n.localStorage)},local:{customDomain:"string"==typeof(null==c||null==(r=c.local)?void 0:r.customDomain)?null==c||null==(a=c.local)?void 0:a.customDomain:(0,o.zd)(document.location.hostname)},thirdParty:{enabled:!0===(null==c||null==(u=c.group)?void 0:u.enabled),customDomain:"string"==typeof(null==c||null==(l=c.group)?void 0:l.customDomain)?null==c||null==(d=c.group)?void 0:d.customDomain:null}}})},4640:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var s=n(34576),r={crawlers:/googlebot|adsbot|feedfetcher|mediapartners|bingbot|bingpreview|slurp|linkedinbot|msnbot|teoma|alexabot|exabot|facebot|facebook|twitter|yandex|baidu|duckduckbot|qwantify|qwantbot|archive|applebot|addthis|slackbot|reddit|whatsapp|pinterest|moatbot|google-xrawler|crawler|spider|crawling|oncrawl|NETVIGIE|PetalBot|PhantomJS|NativeAIBot|Cocolyzebot|SMTBot|EchoboxBot|Quora-Bot|scraper|BLP_bbot|MAZBot|ScooperBot|BublupBot|Cincraw|HeadlessChrome|diffbot|Google Web Preview|Doximity-Diffbot|Rely Bot|pingbot|cXensebot|PingdomTMS|AhrefsBot|robot|semrush|seenaptic|netvibes|taboolabot|SimplePie|APIs-Google|Google-Read-Aloud|googleweblight|DuplexWeb-Google|Google Favicon|Storebot-Google|TagInspector|Rigor|Bazaarvoice|KlarnaBot|pageburst|naver|iplabel/i,performance:/Chrome-Lighthouse|gtmetrix|speedcurve|DareBoost|PTST|StatusCake_Pagespeed_Indev/i},i=n(12321),o=(0,s.EW)(()=>{var e,t,n,s=null==i.G?void 0:i.G.value.bots;return!!s&&(e=s.types,t=s.extraUserAgents,n=navigator.userAgent,!(!Array.isArray(e)||!e.some(e=>{var t=r[e];return t?t.test(n):(console.error('Didomi - Bot detector - Bot type "'+e+'" does not exist'),!1)}))||!(!Array.isArray(t)||!t.some(e=>{try{if(!e||"string"!=typeof e)throw new Error("User-Agent cannot be null, undefined, or an empty string");return new RegExp(e).test(n)}catch(t){return console.error('Didomi - Bot detector - User-agent "'+e+'" is not a valid regular expression: '+t.message),!1}})))})},6024:function(e,t,n){"use strict";n.d(t,{Nm:function(){return r},cO:function(){return u},cb:function(){return i},yS:function(){return a}});var s=n(50378),r="en",i=["ca","de","en","es","fr","hr","it","nl","pt","fi","cs","pl","ro","el","hu","da","sk","bg","sl","lt","sv","et","lv","tr","ru","uk","ja","vi","ar","zh-TW","zh-CN","sr","ko","th","ms","az-AZ","bn-IN","fil","he","hi-IN","id","mk-MK","pt-BR","sw","no","ar-JO","de-AT","de-CH","en-GB","en-NZ","fr-BE","fr-CA","nl-BE","sr-Latn","eu","tl","gl","mt","sq","ka","bs","cy","be","en-CA"],o={zh:"CN",az:"AZ",bn:"IN",hi:"IN",mk:"MK",pt:"BR"},a=e=>{if(!(0,s.Kg)(e))return null;var[t]=e.split("-"),n=o[t];return n?t+"-"+n:null},u=e=>-1!==i.indexOf(e)?e:e.slice(0,2)},9757:function(e,t,n){"use strict";n.d(t,{FG:function(){return p},H2:function(){return d},KX:function(){return l},LN:function(){return o},PL:function(){return m},RQ:function(){return a},VF:function(){return i},br:function(){return h},cu:function(){return f},eL:function(){return r},gS:function(){return u},in:function(){return g},le:function(){return b},x4:function(){return c}});var s=n(50378),r={Cookies:"cookies",CookiesAnalytics:"cookies_analytics",CookiesMarketing:"cookies_marketing",CookiesSocial:"cookies_social",AdvertisingPersonalization:"advertising_personalization",Analytics:"analytics",ContentPersonalization:"content_personalization",AdDelivery:"ad_delivery",DeviceAccess:"device_access",OfflineMatch:"offline_match",LinkDevices:"link_devices",PreciseGeo:"precise_geo",SelectBasicAds:"select_basic_ads",CreateAdsProfile:"create_ads_profile",SelectPersonalizedAds:"select_personalized_ads",CreateContentProfile:"create_content_profile",SelectPersonalizedContent:"select_personalized_content",MeasureAdPerformance:"measure_ad_performance",MeasureContentPerformance:"measure_content_performance",MarketResearch:"market_research",ImproveProducts:"improve_products",UseLimitedDataToSelectContent:"use_limited_data_to_select_content"},i={consentOnly:0,consentAndLegitimateInterest:1},o={[r.Cookies]:1,[r.CookiesAnalytics]:1,[r.CookiesMarketing]:1,[r.CookiesSocial]:1,[r.SelectBasicAds]:2,[r.CreateAdsProfile]:3,[r.SelectPersonalizedAds]:4,[r.CreateContentProfile]:5,[r.SelectPersonalizedContent]:6,[r.MeasureAdPerformance]:7,[r.MeasureContentPerformance]:8,[r.MarketResearch]:9,[r.ImproveProducts]:10,[r.UseLimitedDataToSelectContent]:11},a={1:r.Cookies,2:r.SelectBasicAds,3:r.CreateAdsProfile,4:r.SelectPersonalizedAds,5:r.CreateContentProfile,6:r.SelectPersonalizedContent,7:r.MeasureAdPerformance,8:r.MeasureContentPerformance,9:r.MarketResearch,10:r.ImproveProducts,11:r.UseLimitedDataToSelectContent},u={[r.Cookies]:1,[r.SelectBasicAds]:2,[r.CreateAdsProfile]:3,[r.SelectPersonalizedAds]:4,[r.CreateContentProfile]:5,[r.SelectPersonalizedContent]:6,[r.MeasureAdPerformance]:7,[r.MeasureContentPerformance]:8,[r.MarketResearch]:9,[r.ImproveProducts]:10};function l(e){for(var t of Object.keys(o))if(String(e)===String(o[t]))return t;return null}var d={GeolocationData:"geolocation_data",DeviceCharacteristics:"device_characteristics"},c={[d.GeolocationData]:1,[d.DeviceCharacteristics]:2},p={1:d.GeolocationData,2:d.DeviceCharacteristics},v=Object.keys(c);Object.keys(u);function h(e){return"iab"===e.namespace||!!e.namespaces&&(!!e.namespaces.iab||!!e.namespaces.iab2)}function f(e){return!!(0,s.Jt)(e,"namespaces.google.current")}function g(e){if("iab"===e.namespace){var t="number"==typeof e.id?e.id:parseInt(e.id,10);if(t)return t}else if(e.namespaces){if("number"==typeof e.namespaces.iab)return e.namespaces.iab;if("number"==typeof e.namespaces.iab2)return e.namespaces.iab2}return null}function m(e){for(var t of v)if(String(e)===String(c[t]))return t;return null}var b={google:755,salesforce:506}},10379:function(e,t,n){"use strict";n.d(t,{A2:function(){return i},LL:function(){return r}});var s=n(50378),r=e=>(0,s.Et)(e)&&e>0,i=e=>null==e?void 0:e.sort((e,t)=>{var{name:n}=e,{name:s}=t;return n.localeCompare(s)})},10467:function(e,t,n){"use strict";function s(e,t,n,s,r,i,o){try{var a=e[i](o),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(s,r)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,u,"next",e)}function u(e){s(o,r,i,a,u,"throw",e)}a(void 0)})}}n.d(t,{A:function(){return r}})},10747:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var s=n(58168);class r{constructor(e){this.dataLayerName="dataLayer",e&&"string"==typeof e.dataLayerName&&e.dataLayerName.length>0&&(this.dataLayerName=e.dataLayerName),window[this.dataLayerName]||(window[this.dataLayerName]=[])}pushToDataLayer(e){window[this.dataLayerName]&&"function"==typeof window[this.dataLayerName].push&&window[this.dataLayerName].push(e)}sendCookiesConsentEvent(e){0===(null==e?void 0:e.length)||1===e.length&&"essential"===e[0]||this.pushToDataLayer({event:"didomi-cookies-consent",didomiCookiesConsent:e.join(",")})}update(e){var{type:t="didomi-consent-changed",customVariables:n={},allowedCategories:r=[]}=e;this.sendCookiesConsentEvent(r),this.pushToDataLayer((0,s.A)({event:"didomi-consent"},n)),this.pushToDataLayer((0,s.A)({event:t},n))}}},11843:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});var s=n(20259),r=(0,n(34576).EW)(()=>{var e;return null==(e=s.bK.value)?void 0:e.regulation})},11930:function(e,t,n){"use strict";n.r(t),n.d(t,{initIABTCFCmpAPI:function(){return te},updateIABTCFCmpApi:function(){return X}});var s,r,i,o,a,u,l,d,c,p,v=!0,h=!0,f=()=>h,g="",m=()=>g,b=()=>i,I=1,y=7,S=1,C=!1,w=()=>u;!function(e){e.PING="ping",e.GET_TC_DATA="getTCData",e.GET_IN_APP_TC_DATA="getInAppTCData",e.GET_VENDOR_LIST="getVendorList",e.ADD_EVENT_LISTENER="addEventListener",e.REMOVE_EVENT_LISTENER="removeEventListener"}(l||(l={})),function(e){e.STUB="stub",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(d||(d={})),function(e){e.VISIBLE="visible",e.HIDDEN="hidden",e.DISABLED="disabled"}(c||(c={})),function(e){e.TC_LOADED="tcloaded",e.CMP_UI_SHOWN="cmpuishown",e.USER_ACTION_COMPLETE="useractioncomplete"}(p||(p={}));class A{constructor(e,t,n,s){this.listenerId=void 0,this.callback=void 0,this.next=void 0,this.param=void 0,this.success=!0,Object.assign(this,{callback:e,listenerId:n,param:t,next:s});try{this.respond()}catch(e){this.invokeCallback(null)}}invokeCallback(e){var t=null!==e;"function"==typeof this.next?this.callback(this.next,e,t):this.callback(e,t)}}class _ extends A{respond(){this.throwIfParamInvalid(),this.invokeCallback(new L(this.param,this.listenerId))}throwIfParamInvalid(){if(!(void 0===this.param||Array.isArray(this.param)&&this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")}}class P{constructor(e){this.name=void 0,this.recalculations=void 0,this.cache=void 0,this.name=e,this.recalculations=0,this.cache=new Map}get(e,t){var n=this.cache.get(e);if(n)return n;for(var s=arguments.length,r=new Array(s>2?s-2:0),i=2;i{new _(e.callback,e.param,t,e.next)})}clear(){this.queueNumber=0,this.eventQueue.clear()}get size(){return this.eventQueue.size}},E.cmpStatus=d.LOADING,E.disabled=!1,E.displayStatus=c.HIDDEN,E.cmpId=void 0,E.cmpVersion=void 0,E.eventStatus=void 0,E.gdprApplies=void 0,E.tcModel=void 0,E.tcString=void 0,E.restrictionsCache=new class{constructor(){this.cacheBuckets=void 0,this.cacheBuckets=new Map}getBucket(e){var t=this.cacheBuckets.get(e);return t||(t=new P(e),this.cacheBuckets.set(e,t)),t}clear(){this.cacheBuckets.forEach(e=>e.clear())}numberOfBuckets(){return this.cacheBuckets.size}size(){var e=0;return this.cacheBuckets.forEach(t=>e+=t.size()),e}};class O{constructor(){this.cmpId=E.cmpId,this.cmpVersion=E.cmpVersion,this.gdprApplies=E.gdprApplies,this.tcfPolicyVersion=E.tcfPolicyVersion}}class k extends O{constructor(){super(...arguments),this.cmpStatus=d.ERROR}}class L extends O{constructor(e,t){super(),this.tcString=void 0,this.listenerId=void 0,this.eventStatus=void 0,this.cmpStatus=void 0,this.isServiceSpecific=void 0,this.useNonStandardTexts=void 0,this.publisherCC=void 0,this.purposeOneTreatment=void 0,this.outOfBand=void 0,this.purpose=void 0,this.vendor=void 0,this.specialFeatureOptins=void 0,this.publisher=void 0,this.eventStatus=E.eventStatus,this.cmpStatus=E.cmpStatus,this.listenerId=t;var n=E.restrictionsCache.getBucket(this.constructor.name);if(E.gdprApplies){var s=E.tcModel;this.tcString=E.tcString,this.isServiceSpecific=s.isServiceSpecific,this.useNonStandardTexts=s.useNonStandardTexts,this.purposeOneTreatment=s.purposeOneTreatment,this.publisherCC=s.publisherCountryCode;var r=n.get(this.tcString,this.createRestrictions.bind(this),s.publisherRestrictions);!1===this.isServiceSpecific&&(this.outOfBand={allowedVendors:this.createVectorField(s.vendorsAllowed,e),disclosedVendors:this.createVectorField(s.vendorsDisclosed,e)}),this.purpose={consents:this.createVectorField(s.purposeConsents),legitimateInterests:this.createVectorField(s.purposeLegitimateInterests)},this.vendor={consents:this.createVectorField(s.vendorConsents,e),legitimateInterests:this.createVectorField(s.vendorLegitimateInterests,e),disclosedVendors:this.createVectorField(s.vendorsDisclosed,e)},this.specialFeatureOptins=this.createVectorField(s.specialFeatureOptins),this.publisher={consents:this.createVectorField(s.publisherConsents),legitimateInterests:this.createVectorField(s.publisherLegitimateInterests),customPurpose:{consents:this.createVectorField(s.publisherCustomConsents),legitimateInterests:this.createVectorField(s.publisherCustomLegitimateInterests)},restrictions:r}}}createRestrictions(e){var t={};if(e.numRestrictions>0)for(var n=e.getMaxVendorId(),s=function(){var n=r.toString();e.getRestrictions(r).forEach(e=>{var s=e.purposeId.toString();t[s]||(t[s]={}),t[s][n]=e.restrictionType})},r=1;r<=n;r++)s();return t}createVectorField(e,t){return t?t.reduce((t,n)=>(t[String(n)]=e.has(Number(n)),t),{}):[...e].reduce((e,t)=>(e[t[0].toString(10)]=t[1],e),{})}}class T extends L{constructor(e){super(e),delete this.outOfBand}createVectorField(e){return[...e].reduce((e,t)=>e+=t[1]?"1":"0","")}createRestrictions(e){var t={};if(e.numRestrictions>0){var n=e.getMaxVendorId();e.getRestrictions().forEach(e=>{t[e.purposeId.toString()]="_".repeat(n)});for(var s=function(n){var s=n+1;e.getRestrictions(s).forEach(e=>{var s=e.restrictionType.toString(),r=e.purposeId.toString(),i=t[r].substr(0,n),o=t[r].substr(n+1);t[r]=i+s+o})},r=0;r{this.invokeCallback(e.getJson())})}},F[N]=class extends _{respond(){this.listenerId=E.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),super.respond()}},F[x]=class extends A{respond(){this.invokeCallback(E.eventQueue.remove(this.param))}};class z{static has(e){return"string"==typeof e&&(e=Number(e)),this.set_.has(e)}}z.set_=new Set([0,2,void 0,null]);var j="__tcfapi";class W{constructor(e){if(this.callQueue=void 0,this.customCommands=void 0,e){var t=l.ADD_EVENT_LISTENER;if(null!=e&&e[t])throw new Error("Built-In Custom Commmand for "+t+" not allowed: Use "+l.GET_TC_DATA+" instead");if(t=l.REMOVE_EVENT_LISTENER,null!=e&&e[t])throw new Error("Built-In Custom Commmand for "+t+" not allowed");null!=e&&e[l.GET_TC_DATA]&&(e[l.ADD_EVENT_LISTENER]=e[l.GET_TC_DATA]),this.customCommands=e}try{this.callQueue=window[j]()||[]}catch(e){this.callQueue=[]}finally{window[j]=this.apiCall.bind(this),this.purgeQueuedCalls()}}apiCall(e,t,n){for(var s=arguments.length,r=new Array(s>3?s-3:0),i=3;i{window[j](...e)})}isCustomCommand(e){return this.customCommands&&"function"==typeof this.customCommands[e]}isBuiltInCommand(e){return void 0!==F[e]}}class G{constructor(e,t,n,s){void 0===n&&(n=!0),this.callResponder=void 0,this.isServiceSpecific=void 0,this.numUpdates=0,this.throwIfInvalidInt(e,"cmpId",2),this.throwIfInvalidInt(t,"cmpVersion",0),E.cmpId=e,E.cmpVersion=t,E.tcfPolicyVersion=5,this.isServiceSpecific=!!n,this.callResponder=new W(s)}throwIfInvalidInt(e,t,n){if(!("number"==typeof e&&Number.isInteger(e)&&e>=n))throw new Error("Invalid "+t+": "+e)}update(e,t){if(void 0===t&&(t=!1),E.disabled)throw new Error("CmpApi Disabled");E.cmpStatus=d.LOADED,t?(E.displayStatus=c.VISIBLE,E.eventStatus=p.CMP_UI_SHOWN):void 0===E.tcModel?(E.displayStatus=c.DISABLED,E.eventStatus=p.TC_LOADED):(E.displayStatus=c.HIDDEN,E.eventStatus=p.USER_ACTION_COMPLETE),E.gdprApplies=null!==e,E.gdprApplies?(""===e?(E.tcModel=new M.jT,E.tcModel.cmpId=E.cmpId,E.tcModel.cmpVersion=E.cmpVersion):E.tcModel=M.de.decode(e),E.tcModel.isServiceSpecific=this.isServiceSpecific,E.tcfPolicyVersion=Number(E.tcModel.policyVersion),E.tcString=e):E.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():E.eventQueue.exec(),this.numUpdates++}disable(){E.disabled=!0,E.cmpStatus=d.ERROR}}var J=(e,t,n)=>{if(t&&t.gdprApplies&&t.eventStatus===p.TC_LOADED&&t.tcString===m()){if(null!==t.listenerId)return null;t.eventStatus=p.CMP_UI_SHOWN}var s=r;t&&"function"==typeof s&&(t.addtlConsent=s()),t&&C&&(t.enableAdvertiserConsentMode=!0),e(t,n)},q=e=>e.replace(/&/g,"&").replace(//g,">").replace(/'/g,"'"),K=e=>{if("object"==typeof e){var t=JSON.stringify(e);return JSON.parse(q(t))}return"string"==typeof e?q(e):e};function H(e){return Array.isArray(e)?e.map(e=>K(e)):"string"==typeof e?K(e):e}function Z(e,t,n,s){var r;void 0===s&&(s=void 0);var i=s=>function(e,t,n,s){if(s&&s.data){var r,i="string"==typeof s.data;try{r=i?JSON.parse(s.data):s.data}catch(e){return}if(r[e]){var o=r[e];n(o.command,H(o.parameter),(e,n)=>{var r={[t]:{returnValue:e,success:n,callId:o.callId}};s.source&&"function"==typeof s.source.postMessage?s.source.postMessage(i?JSON.stringify(r):r,"*"):window.postMessage(i?JSON.stringify(r):r,"*")},2,!1)}}}(e,t,n,s);if(window.addEventListener?window.addEventListener("message",i,!1):null===(r=window.attachEvent)||void 0===r||r.call(window,"onmessage",i),window.DidomiSanitizing={sanitizeString:H},Array.isArray(s)&&s.length>0)for(var o of s)n(o.command,H(o.parameter),o.callback,o.version,!0)}var Y,$=(e,t,n,s,r)=>{if("function"==typeof n){var i=b(),o=w(),a=t,u=s;-1===n.toString().indexOf("postMessage")&&r&&1===I&&(a=s,u=t),u=(e=>"null"===e?null:e)(u),(null==i?void 0:i.enabledTCFAPIErrorLogging)?null==o||o.apiCall(e,u,(e=>function(){try{e(...arguments)}catch(e){console.error("Callback error at TCF API execution",e)}})(n),a):null==o||o.apiCall(e,u,n,a)}},Q=(e,t)=>Y?Y.uiVisible===e&&Y.encodedTCString===t||(Y.uiVisible=e,Y.encodedTCString=t,!1):(Y={uiVisible:e,encodedTCString:t},!1),X=e=>{var t,n,r=a;if(!r||!s)return null;var i=null!==(n=null!==(t=s())&&void 0!==t?t:m())&&void 0!==n?n:null;if(Q(e,i))return null;r.update(f()?i:null,e)},ee=()=>{var e=b();if(void 0===w()&&(void 0===(t=e)&&(t=void 0),!1!==(null===(s=null===(n=null==t?void 0:t.vendors)||void 0===n?void 0:n.iab)||void 0===s?void 0:s.enabled)||!f())&&!function(e){var t,n;return void 0===e&&(e=void 0),null===(n=null===(t=null==e?void 0:e.vendors)||void 0===t?void 0:t.iab)||void 0===n?void 0:n.disableTCFAPI}(e)){var t,n,s,r=new G(y,S,!0,{getTCData:J});if((e=>{a=e})(r),X(!1),(e=>{u=e})(r.callResponder),window.__tcfapi=(e,t,n,s)=>$(e,s,n,t,!1),v){"function"==typeof o&&o()}Z("__tcfapiCall","__tcfapiReturn",$,window.__tcfapiBuffer)}},te=(e,t)=>{var n,{cmpId:a,cmpVersion:u,isConsentRequired:l,isGDPRApplied:d,defaultConsentString:c,consentStringGetter:p,additionalConsentStringGetter:f,sdkEventListenersSetter:m,enableAdvertiserConsentMode:b}=null!=t?t:{};if((e=>{"boolean"==typeof e&&(v=e)})(l),(e=>{"boolean"==typeof e&&(h=e)})(d),(e=>{"string"==typeof e&&(g=e)})(c),(e=>{r=e})(f),(e=>{i=e})(e),(e=>{"number"==typeof e&&(I=e)})(null===(n=window.__tcfapi)||void 0===n?void 0:n.stubVersion),(e=>{o="function"==typeof e?e:()=>{}})(m),(e=>{"number"==typeof e&&(y=e)})(a),(e=>{"number"==typeof e&&(S=e)})(u),(e=>{C=e})(null!=b&&b),!p||"function"!=typeof p)throw Error("Didomi - consentStringGetter function must be provided in options for initIABTCFCmpAPI");(e=>{s=e})(p),ee()}},12321:function(e,t,n){"use strict";n.d(t,{G:function(){return d}});var s=n(34576),r=n(20259),i=n(52477),o=n(50378),a=n(23187),u=n(88517),l={authToken:null,organizationId:null,auth:{tokenName:"token"},bots:{consentRequired:!0,types:["crawlers","performance"],extraUserAgents:[]},externalConsent:{enabled:!1,value:null},ignoreConsentBefore:null,synchronizedUsers:[],dcsUser:null},d=(0,s.EW)(()=>{var e,t,n,s=(0,o.Go)(null==(e=r.bK.value)?void 0:e.user),u=null==(t=r.bK.value)?void 0:t.synchronizedUsers;(0,o.Im)(s)&&(s=l),u&&Array.isArray(u)&&u.length?s.synchronizedUsers=u:s.synchronizedUsers=l.synchronizedUsers;var d=s.dcsUser||(null==(n=r.bK.value)?void 0:n.dcsUser);s.dcsUser="object"!=typeof d?l.dcsUser:d;var{authToken:c,organizationUserIdExp:p,ignoreConsentBefore:v}=s;if(c){var h=(0,a.K9)(c);h&&(s.organizationId=h.organization_id,s.organizationUserId=h.sub)}return null!==s.organizationUserId&&""!==s.organizationUserId||(delete s.organizationUserId,console.error('Didomi - Authorization Parameters configuration: Invalid Organization User Id "'+s.organizationUserId+'". The value will be ignored')),p&&!(0,o.Et)(p)&&(delete s.organizationUserIdExp,console.error('Didomi - Authorization Parameters configuration: Invalid Organization User Digest Expired timestamp "'+p+'". The value will be ignored')),v&&(s.ignoreConsentBefore=(0,i.u)(v)||null),(0,o.or)(l,s)});(0,s.QZ)(()=>{d.value.id&&d.value.id!==u.J.value&&(0,u.C)(d.value.id)})},14004:function(e,t,n){"use strict";n.d(t,{y:function(){return u}});var s=n(20152),r=n(15067),i=n(20259),o=n(11843),a=n(91963),u=(0,n(34576).EW)(()=>{var e,t,n,u,l,d,c;return"ccpa"!==(null==(e=o.r.value)?void 0:e.name)&&("none"!==(null==(t=o.r.value)?void 0:t.name)&&(null!=(n=i.bK.value)&&n.version&&"mixed"===(null==(u=o.r.value)||null==(l=u.group)?void 0:l.name)?(null==(c=r.t.value)?void 0:c.spiPurposeIdsBasedOnConsent.length)>0:!a.p.value&&(!0===s.U.value.ignoreCountry||"gdpr"===(null==(d=o.r.value)?void 0:d.name))))})},15067:function(e,t,n){"use strict";n.d(t,{t:function(){return h}});var s=n(58168),r=n(34576),i=n(98074),o=n(78691),a=n(73412),u=n(77396),l=(0,r.EW)(()=>u.T.value.map(e=>a.m.value[e])),d=n(11843),c=n(26149),p=n(63364),v=e=>e&&"personalDataType"===e.type,h=(0,r.EW)(()=>{var e={purposes:new Set,purposeIds:new Set,purposesBasedOnConsent:new Set,purposeIdsBasedOnConsent:new Set,purposesBasedOnLI:new Set,purposeIdsBasedOnLI:new Set,purposeIdsFirstParty:new Set,spiPurposes:new Set,spiPurposeIds:new Set,spiPurposeIdsBasedOnConsent:new Set,spiPurposeIdsBasedOnLI:new Set};for(var t of c.H$.value.operators){if(Array.isArray(t.legIntPurposeIds))for(var n of t.legIntPurposeIds){var r,h=null==(r=a.m.value)?void 0:r[n],f=v(h)||p.b.value.includes(n);h&&!i.B.value.includes(n)&&(e.purposeIds.add(h.id),e.purposes.add(h),f&&(e.spiPurposes.add(h),e.spiPurposeIds.add(h.id)),"1st_party"===t.type&&e.purposeIdsFirstParty.add(h.id),u.T.value.includes(h.id)||e.purposeIdsBasedOnLI.has(h.id)||(e.purposeIdsBasedOnLI.add(h.id),e.purposesBasedOnLI.add((0,s.A)({},h,{legalBasis:"legitimate_interest"})),f&&e.spiPurposeIdsBasedOnLI.add(h.id)))}if(Array.isArray(t.purposeIds))for(var g of t.purposeIds){var m,b=null==(m=a.m.value)?void 0:m[g],I=v(b)||p.b.value.includes(g);b&&!i.B.value.includes(b.id)&&(e.purposeIds.add(b.id),e.purposes.add(b),I&&(e.spiPurposes.add(b),e.spiPurposeIds.add(b.id)),"1st_party"===t.type&&e.purposeIdsFirstParty.add(b.id),u.T.value.includes(b.id)||e.purposeIdsBasedOnConsent.has(b.id)||(e.purposeIdsBasedOnConsent.add(b.id),e.purposesBasedOnConsent.add((0,s.A)({},b,{legalBasis:"consent"})),I&&e.spiPurposeIdsBasedOnConsent.add(b.id)))}}for(var y of o.x.value)if(!e.purposeIds.has(y.id)){e.purposeIds.add(y.id),e.purposes.add(y);var S,C,w,A,_=v(y)||p.b.value.includes(y.id);if(!e.purposeIdsBasedOnConsent.has(y.id)&&!e.purposeIdsBasedOnLI.has(y.id)&&!u.T.value.includes(y.id))e.purposeIdsFirstParty.add(y.id),null==(S=d.r.value)||null==(C=S.group)||!C.name||"optin"===(null==(w=d.r.value)||null==(A=w.group)?void 0:A.name)||_?(e.purposeIdsBasedOnConsent.add(y.id),e.purposesBasedOnConsent.add((0,s.A)({},y,{legalBasis:"consent"})),_&&(e.spiPurposes.add(y),e.spiPurposeIds.add(y.id),e.spiPurposeIdsBasedOnConsent.add(y.id))):(e.purposeIdsBasedOnLI.add(y.id),e.purposesBasedOnLI.add((0,s.A)({},y,{legalBasis:"legitimate_interest"})))}for(var P of l.value)e.purposeIds.add(P.id),e.purposes.add(P);return{purposes:[...e.purposes],purposeIds:[...e.purposeIds],purposesBasedOnConsent:[...e.purposesBasedOnConsent],purposeIdsBasedOnConsent:[...e.purposeIdsBasedOnConsent],purposesBasedOnLI:[...e.purposesBasedOnLI],purposeIdsBasedOnLI:[...e.purposeIdsBasedOnLI],purposeIdsFirstParty:[...e.purposeIdsFirstParty],spiPurposes:[...e.spiPurposes],spiPurposeIds:[...e.spiPurposeIds],spiPurposeIdsBasedOnConsent:[...e.spiPurposeIdsBasedOnConsent],spiPurposeIdsBasedOnLI:[...e.spiPurposeIdsBasedOnLI]}})},15427:function(e,t,n){"use strict";n.r(t),n.d(t,{getApplicableProviders:function(){return r}});var s=new Set(["adobe","gtm","tealium","commandersact","eulerian","eulerian-v2"]),r=e=>{var t,n=new Set(["didomi"]);return null!=e&&e.provider?(null==(t=e.provider.split("|"))||t.forEach(e=>{"didomi"!==e&&(s.has(e)?n.add(e):console.error('Didomi SDK - The tag manager "'+e+'" is not supported. Possible values: '+[...s].join(", ")))}),n):n}},15560:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var s=n(34576),r=n(25159),i=(0,s.vP)({majorVersion:r.a.defaultTCFVersion,minorVersion:r.a.defaultTCFMinorVersion,semVersion:parseFloat(r.a.defaultTCFVersion+"."+r.a.defaultTCFMinorVersion)})},16382:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var s=()=>{var e,t,n=null==(e=window.didomiRemoteConfig)||null==(t=e.notices)?void 0:t[0];return n&&"object"==typeof n?n:null}},16691:function(e,t,n){"use strict";function s(){var e=Math.round((new Date).getTime()).toString(16);return(e.substring(0,8)+"-"+e.substring(8)+"x-6xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g,e=>{var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}n.d(t,{A:function(){return s}})},17732:function(e,t,n){"use strict";n.d(t,{J:function(){return v}});var s=n(34576),r=n(14004),i=n(9757),o=n(68200),a=n(66559),u=(0,s.EW)(()=>{var e,t=null==(e=a.o.value)?void 0:e.google;if(!t)return!1;var n=!0;for(var s of t.purposeIds){var r,u,l;n=n&&(null==(r=o.II.value)||null==(u=r.purposes)||null==(l=u.enabled)?void 0:l.includes(s))}for(var d of t.legIntPurposeIds){var c,p,v;n=n&&(null==(c=o.II.value)||null==(p=c.purposes_li)||null==(v=p.enabled)?void 0:v.includes(d))}if(t.specialFeatureIds)for(var h of t.specialFeatureIds){(0,i.PL)(h)&&(n=n&&o.II.value.purposes.enabled.includes(h))}return n}),l=n(91888),d=(0,s.EW)(()=>{var e,t,n,s=[],r=[],i=null==(e=l.E.value)?void 0:e.map(e=>{var{id:t}=e;return t}),{vendors:a,vendors_li:u}=o.II.value,d=e=>i.includes(e),c=null==a||null==(t=a.enabled)?void 0:t.filter(d),p=null==u||null==(n=u.enabled)?void 0:n.filter(d);for(var v of l.E.value){var h,f,g,m,b,I,y,S,C,w,A=(null==v||null==(h=v.purposeIds)?void 0:h.length)>0,_=(null==v||null==(f=v.legIntPurposeIds)?void 0:f.length)>0;if(A||_)if(!A||null!=c&&c.includes(v.id))if(!_||null!=p&&p.includes(v.id))s.push(null==v||null==(g=v.namespaces)||null==(m=g.google)?void 0:m.id);else r.push(null==v||null==(b=v.namespaces)||null==(I=b.google)?void 0:I.id);else r.push(null==v||null==(y=v.namespaces)||null==(S=y.google)?void 0:S.id);else r.push(null==v||null==(C=v.namespaces)||null==(w=C.google)?void 0:w.id)}return{enabledATPVendorIds:s.filter((e,t)=>s.indexOf(e)==t),disclosedATPVendorIds:r.filter((e,t)=>r.indexOf(e)==t)}}),c=n(20152),p=n(26781),v=(0,s.EW)(()=>{var e,t;if(r.y.value){var n,s,i,o,a,l,v,h,{enabledATPVendorIds:f,disclosedATPVendorIds:g}=d.value;return!1===(null==(e=c.U.value.vendors)||null==(t=e.google)?void 0:t.fullATP)?u.value?(null==(n=c.U.value)||null==(s=n.vendors)||null==(i=s.google)||null==(o=i.additionalConsent)?void 0:o.positive)||p.Lq:(null==(a=c.U.value)||null==(l=a.vendors)||null==(v=l.google)||null==(h=v.additionalConsent)?void 0:h.negative)||"":u.value?"2~"+f.join(".")+"~dv."+g.join("."):"2~~dv."+[...f,...g].join(".")}})},18557:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var s=n(58168),r=n(34576),i=n(20152),o=n(50378),a=n(25159),u=n(24163),l=(0,r.EW)(()=>{var e,t,n,r,u,l,d,c,p,v,h,f,g,m,b,I,y,S,C,w,A,_,P,E,O,k,L,T,D,U,R,B,V,N,x,M,F,z,j,W,G,J,q,K,H,Z,Y=null==(e=i.U.value)?void 0:e.consentString,$=null==Y?void 0:Y.version,Q=void 0;Array.isArray(null==Y||null==(t=Y.encoder)||null==(n=t.schemaOverrides)||null==(r=n.fields)||null==(u=r.purposes_optin)?void 0:u.variants)&&(null==Y||null==(l=Y.encoder)||null==(d=l.schemaOverrides)||null==(c=d.fields)||null==(p=c.purposes_optin)?void 0:p.variants.length)>0&&(Q=(0,s.A)({},Q||{},{fields:(0,s.A)({},null!=(N=Q)&&N.fields?null==(x=Q)?void 0:x.fields:{},{purposes_optin:null==Y||null==(M=Y.encoder)?void 0:M.schemaOverrides.fields.purposes_optin})}));Array.isArray(null==Y||null==(v=Y.encoder)||null==(h=v.schemaOverrides)||null==(f=h.fields)||null==(g=f.purposes_optout)?void 0:g.variants)&&(null==Y||null==(m=Y.encoder)||null==(b=m.schemaOverrides)||null==(I=b.fields)||null==(y=I.purposes_optout)?void 0:y.variants.length)>0&&(Q=(0,s.A)({},Q||{},{fields:(0,s.A)({},null!=(F=Q)&&F.fields?null==(z=Q)?void 0:z.fields:{},{purposes_optout:null==Y||null==(j=Y.encoder)?void 0:j.schemaOverrides.fields.purposes_optout})}));Array.isArray(null==Y||null==(S=Y.encoder)||null==(C=S.schemaOverrides)||null==(w=C.fields)||null==(A=w.vendors_optin)?void 0:A.variants)&&(null==Y||null==(_=Y.encoder)||null==(P=_.schemaOverrides)||null==(E=P.fields)||null==(O=E.vendors_optin)?void 0:O.variants.length)>0&&(Q=(0,s.A)({},Q||{},{fields:(0,s.A)({},null!=(W=Q)&&W.fields?null==(G=Q)?void 0:G.fields:{},{vendors_optin:null==Y||null==(J=Y.encoder)?void 0:J.schemaOverrides.fields.vendors_optin})}));Array.isArray(null==Y||null==(k=Y.encoder)||null==(L=k.schemaOverrides)||null==(T=L.fields)||null==(D=T.vendors_optout)?void 0:D.variants)&&(null==Y||null==(U=Y.encoder)||null==(R=U.schemaOverrides)||null==(B=R.fields)||null==(V=B.vendors_optout)?void 0:V.variants.length)>0&&(Q=(0,s.A)({},Q||{},{fields:(0,s.A)({},null!=(q=Q)&&q.fields?null==(K=Q)?void 0:K.fields:{},{vendors_optout:null==Y||null==(H=Y.encoder)?void 0:H.schemaOverrides.fields.vendors_optout})}));return Z=$,(0,o.Et)(Z)&&a.a.didomiConsentStringSchemaMinorVersion<=Z&&Z<=a.a.didomiConsentStringSchemaMajorVersion?{version:$,signatureEnabled:!0===(null==Y?void 0:Y.signatureEnabled),isDidomiConsentStringEncodingEnabled:!0,schemaOverrides:Q}:(void 0!==$&&console.error("Didomi - The Didomi Consent String version ["+$+"] is invalid"),{version:void 0,signatureEnabled:!1,isDidomiConsentStringEncodingEnabled:!1,schemaOverrides:Q})}),d=(0,r.QZ)(()=>{var e;null!=(e=l.value)&&e.isDidomiConsentStringEncodingEnabled&&((0,u.h)(),d())})},19621:function(e,t,n){"use strict";n.r(t),n.d(t,{Wrapper:function(){return i}});var s=n(50378),r=n(55217);class i{constructor(e,t){this.windowVarCall=e,this.windowVarReadys=t||[e],this.createCondition(this.windowVarReadys,window)?this.loaded=!0:(this.loaded=!1,this.loading=new Promise(e=>{(0,r.Tv)(t=>{this.createCondition(this.windowVarReadys,window)&&(this.loaded=!0,e(),t())},100,3e4)}))}createCondition(e,t){return e.reduce((e,n)=>{var r=Array.isArray(n)?n.reduce((e,n)=>e||Boolean((0,s.Jt)(t,n)),!1):(0,s.Jt)(t,n);return e&&Boolean(r)},!0)}call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{this.doCall(this.windowVarCall,e,...n)});this.doCall(this.windowVarCall,e,...n)}doCall(e,t){var n=(0,s.Jt)(window,e,{}),r=n[t];if(r&&"function"==typeof r){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a{var e,t,n,r=(0,i.or)((null==(e=s.bK.value)?void 0:e.website)||{},(null==(t=s.bK.value)?void 0:t.app)||{});return"boolean"!=typeof r.enabledTCFAPIErrorLogging&&(r.enabledTCFAPIErrorLogging=o.ENABLED_TCF_API_ERROR_LOGGING),!window.gdprAppliesGlobally||null!=(n=s.bK.value)&&n.version||(r.ignoreCountry=!0),(!(0,i.Et)(r.consentDuration)||r.consentDuration<=0)&&(r.consentDuration=o.CONSENT_DURATION),(!(0,i.Et)(r.deniedConsentDuration)||r.deniedConsentDuration<=0)&&(r.deniedConsentDuration=o.DENIED_CONSENT_DURATION),"string"!=typeof r.providerKey&&delete r.providerKey,"boolean"!=typeof r.enableGlobalConsentForAllVendorsAndPurposes&&(r.enableGlobalConsentForAllVendorsAndPurposes=o.ENABLE_GLOBAL_CONSENT_FOR_ALL_VENDORS_AND_PURPOSES),"boolean"!=typeof r.alwaysDisplayActionButtons&&(r.alwaysDisplayActionButtons=o.ALWAY_DISPLAY_ACTION_BUTTON),r})},20259:function(e,t,n){"use strict";n.d(t,{MU:function(){return o},On:function(){return a},bK:function(){return i},ld:function(){return u}});var s=n(34576),r=n(50378),i=(0,s.vP)(null),o=e=>{var t=Object.assign({},i.value||{});i.value=(0,r.zw)(t,e||{})},a=function(e,t){return void 0===t&&(t=void 0),(0,r.Jt)(i.value,e)||t},u=(e,t)=>{var n=i.value;(0,r.hZ)(n,e,t),i.value=n}},22639:function(e,t,n){"use strict";n.d(t,{v:function(){return l}});var s=n(58168),r=n(34576),i=n(50378),o=n(20259),a={enable:!0,defaultChoice:void 0,enableAllButtons:!1,showWhenConsentIsMissing:!1,canCloseWhenConsentIsMissing:!0,view:"preferences",preferencesView:"purposes",information:{enable:!1,content:{text:{}}},categories:[],denyAppliesToLI:!0,controlType:void 0,combineLIAndConsent:!1,content:{instructions:void 0,activeElements:["title","crossButton","viewAllPartners","save"]},vendorsListModal:{isOpen:!1,title:null,vendors:[]}},u=e=>{if(e.purposeId||e.id){if(/^[A-Za-z0-9-_]+$/.test(e.id)){if(e.children){var t=[];for(var n of e.children){var s=u(n);s&&t.push(s)}e.children=t}return e}return console.error('Didomi - The category ID "'+e.id+'" is not valid. Ignoring it.'),null}return console.error("Didomi - The category/purpose ID is undefined. Ignoring it."),null},l=(0,r.EW)(()=>{var e,t,n=(0,i.or)(a,(null==(e=o.bK.value)?void 0:e.preferences)||{});n.showWhenConsentIsMissing=!(null==n||!n.showWhenConsentIsMissing),!0===(null==n?void 0:n.information.enable)&&(n.view="information"),n.information=(0,s.A)({},n.information,{enable:!(null==n||null==(t=n.information)||!t.enable)});var r=[];if(null!=n&&n.categories)for(var l of n.categories){var d=u(l);d&&r.push(d)}return n.categories=r,n})},23187:function(e,t,n){"use strict";n.d(t,{Hm:function(){return p},K9:function(){return c},RE:function(){return d},RT:function(){return v},h2:function(){return h},qQ:function(){return u},td:function(){return l}});var s=n(50378),r=n(52477),i=n(62026),o=n(90013);function a(e,t){return"object"==typeof e&&(e[t]||(e[t]={}),e[t].disabled||(e[t].disabled=[]),e[t].enabled||(e[t].enabled=[])),e}function u(e,t){try{var n;return a(n=t&&"function"==typeof t&&!o.I.value?t(e):JSON.parse(i.o4.atob(e)),"purposes"),a(n,"purposes_li"),a(n,"vendors"),a(n,"vendors_li"),n}catch(e){return null}}function l(e,t){if(e[t]){var n=Array.isArray(e[t].enabled)&&e[t].enabled.length,s=Array.isArray(e[t].disabled)&&e[t].disabled.length;n||s?n?s||delete e[t].disabled:delete e[t].enabled:delete e[t]}return e}function d(e,t,n){if(void 0===t&&(t=[]),!e||"object"!=typeof e)return null;var r=(0,s.Go)(e),o=(0,s.Jt)(r,"vendors.enabled"),a=(0,s.Jt)(r,"vendors.disabled"),u=(0,s.Jt)(r,"vendors_li.enabled"),d=(0,s.Jt)(r,"vendors_li.disabled"),c=e=>e&&"number"!=typeof e;if(Array.isArray(o)&&(r.vendors.enabled=o.filter(c)),Array.isArray(u)&&(r.vendors_li.enabled=u.filter(c)),Array.isArray(a)&&(r.vendors.disabled=a.filter(c)),Array.isArray(d)&&(r.vendors_li.disabled=d.filter(c)),t.length){var p=(0,s.Jt)(e,"purposes.enabled"),v=(0,s.Jt)(e,"purposes.disabled"),h=(0,s.Jt)(e,"purposes_li.enabled"),f=(0,s.Jt)(e,"purposes_li.disabled"),g=e=>-1===t.indexOf(e);Array.isArray(p)&&p.length&&(r.purposes.enabled=r.purposes.enabled.filter(g)),Array.isArray(v)&&v.length&&(r.purposes.disabled=r.purposes.disabled.filter(g)),Array.isArray(h)&&h.length&&(r.purposes_li.enabled=r.purposes_li.enabled.filter(g)),Array.isArray(f)&&f.length&&(r.purposes_li.disabled=r.purposes_li.disabled.filter(g))}return l(r,"purposes"),l(r,"purposes_li"),l(r,"vendors"),l(r,"vendors_li"),n&&"function"==typeof n?n(r):i.o4.btoa(JSON.stringify(r))}function c(e){try{var t=e.split(".")[1];return JSON.parse(i.o4.decode(t))}catch(e){return console.error("Unable to parse JWT token",e),null}}function p(e,t){if(!e||!e.updated)return!1;var n=(0,r.u)(e.updated);return!!n&&((new Date).getTime()-n.getTime())/1e3>=t}function v(e){var t=[...(0,s.Jt)(e,"vendors.enabled",[]),...(0,s.Jt)(e,"purposes.enabled",[])],n=[...(0,s.Jt)(e,"vendors.disabled",[]),...(0,s.Jt)(e,"purposes.disabled",[])];return 0===t.length&&n.length>0}function h(e){var{token:t,regulationId:n,apply:s}=e;return t&&"object"==typeof t&&void 0!==n&&!0===s&&(t.regulation_id=n),t}},23369:function(e,t,n){"use strict";n.d(t,{B1:function(){return a},Yj:function(){return i},lR:function(){return o}});var s=["consent.pendingchanged","remoteconsent.","consent.","cookies.","integrations.","notice.","preferences.","ui.","components.","sync.","signature.","api."],r=["consent.","remoteconsent.","cookies.","integrations.","notice.","preferences.","ui.","components.","sync.","signature.","api."],i=e=>s.some(t=>e.startsWith(t)),o=e=>!r.some(t=>e.startsWith(t)),a=(e,t)=>function(){try{e(...arguments)}catch(e){console.error("Didomi SDK - Error in event listener callback for "+t+".",e)}}},23410:function(e,t,n){var s={"./adobe/adobe.js":34751,"./commandersact/commandersact.js":84207,"./didomi/didomi.js":517,"./eulerian-v2/eulerian-v2.js":26139,"./eulerian/eulerian.js":54971,"./get-applicable-providers.js":15427,"./gtm/gtm.js":10747,"./load-provider-module.js":87931,"./tealium/tealium.js":72527,"./utils/wrapper.js":19621};function r(e){return i(e).then(n)}function i(e){return Promise.resolve().then(function(){if(!n.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]})}r.keys=function(){return Object.keys(s)},r.resolve=i,r.id=23410,e.exports=r},24163:function(e,t,n){"use strict";n.d(t,{g:function(){return i},h:function(){return o}});var s=n(10467),r=n(68307),i=void 0,o=function(){var e=(0,s.A)(function*(){return n.e("consent-string").then(n.bind(n,16673)).then(e=>{i={encode:e.encodeDCS,decode:e.decodeDCS},(0,r.Ic)("ced.loaded")})});return function(){return e.apply(this,arguments)}}()},24408:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var s=n(34576),r=n(20152),i=(0,s.EW)(()=>{var e,t=null==(e=r.U.value)?void 0:e.apiKey;if(t)return t;var n=document.getElementById("spcloader");if(n&&n.getAttribute){var s=n.getAttribute("data-key");if("string"==typeof s&&s.length>0)return s}})},24746:function(e,t,n){"use strict";n.d(t,{Dx:function(){return i},jh:function(){return o},q7:function(){return u},y3:function(){return a}});var s=n(50378),r=(e,t)=>(null==t?void 0:t[e])||e,i=function(e,t){if(void 0===t&&(t={}),!e)return{};var n={},{enabled:s,disabled:i}=e;for(var o of s||[]){var a=r(o,t);n[a]={id:a,enabled:!0}}for(var u of i||[]){var l=r(u,t);n[l]={id:l,enabled:!1}}return n},o=e=>{var{globalUserStatus:t,includeIds:n=[],reversedIdsToDidomiIdsMap:s,parseNumIds:r=!0}=e,i={enabled:[],disabled:[]};for(var o of Object.keys(t)){var a=(null==s?void 0:s[o])||o;r&&(a=parseInt(a,10)||a),n.length&&!n.includes(a)||(t[o].enabled?i.enabled.push(a):i.disabled.push(a))}return i},a=(e,t)=>{var{vendors:n,purposes:r}=e,{vendors:i,purposes:o}=t,{vendors_li:a,purposes_li:u}=e,{vendors_li:l,purposes_li:d}=t;return!((0,s.r1)(n.enabled,i.enabled)&&(0,s.r1)(n.disabled,i.disabled)&&(0,s.r1)(r.enabled,o.enabled)&&(0,s.r1)(r.disabled,o.disabled)&&(0,s.r1)(a.enabled,l.enabled)&&(0,s.r1)(a.disabled,l.disabled)&&(0,s.r1)(u.enabled,d.enabled)&&(0,s.r1)(u.disabled,d.disabled))},u=function(e,t,n){void 0===t&&(t=[]);var s=t.map(e=>parseInt(e,10)||e);for(var r of Object.keys(e)){var i=(null==n?void 0:n[r])||r;if(i=parseInt(i,10)||i,s.length&&!s.includes(i))return!1}return!0}},25159:function(e,t,n){"use strict";n.d(t,{a:function(){return s}});var s={defaultTCFVersion:2,defaultTCFMinorVersion:2,IABPolicyUrl:"https://iabeurope.eu/iab-europe-transparency-consent-framework-policies/",tcfVersion2_2:2.2,defaultCMPID:7,defaultCMPVersion:1,didomiConsentStringSchemaMinorVersion:1,didomiConsentStringSchemaMajorVersion:2}},26104:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var s=n(20259),r=(0,n(34576).EW)(()=>{var e,t,n=null==(e=s.bK.value)||null==(t=e.cookies)?void 0:t.iabCookieName;return"string"==typeof n&&n.length>0?n:"euconsent-v2"})},26139:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var s=n(55217);class r{constructor(){this.isContainerLoaded=!1,this.containerLoading=new Promise(e=>{(0,s.Tv)(t=>{window._oEa&&window.EA_collector&&(this.isContainerLoaded=!0,e(),t())},100,3e4)})}send(e){var t=null==e?void 0:e.didomiVendorsConsent.split(",").filter(e=>-1===e.indexOf("iab:")).join(",");window.EA_collector(["cmp-customvendor-allowed",t])}update(e){var{customVariables:t}=e;this.isContainerLoaded?this.send(t):this.containerLoading.then(()=>{this.send(t)})}}},26149:function(e,t,n){"use strict";n.d(t,{H$:function(){return s.H}});var s=n(76406)},26781:function(e,t,n){"use strict";n.d(t,{At:function(){return l},Lq:function(){return a},w6:function(){return u}});var s=n(58168),r=n(50378),i=n(94382),o=n(43682),a="1~7.12.35.62.66.70.89.93.108.122.144.149.153.162.167.184.196.221.241.253.259.272.311.317.323.326.338.348.350.415.440.448.449.482.486.491.494.495.540.571.574.585.587.588.590.725.733.780.817.839.864.867.932.938.981.986.1031.1033.1051.1092.1097.1126.1127.1170.1171.1186.1201.1204.1205.1211.1215.1230.1232.1236.1248.1276.1290.1301.1313.1344.1364.1365.1415.1419.1428.1449.1451.1509.1558.1564.1570.1577.1591.1651.1669.1712.1716.1720.1721.1725.1733.1753.1765.1799.1810.1834.1842.1870.1878.1889.1896.1911.1922.1929.2012.2072.2078.2079.2109.2177.2202.2253.2290.2299.2316.2357.2373.2526.2531.2571.2572.2575.2628.2663.2677.2776.2778.2779.2985.3033.3052.3154",u=(e,t)=>{if(0===t.length)return null;var n=t.map(e=>{var{id:t}=e;return t}),s=d(t),r=e.vendors.enabled.filter(e=>-1!==n.indexOf(e)).map(e=>s[e]),o=e.vendors_li.enabled.filter(e=>-1!==n.indexOf(e)).map(e=>s[e]);return(0,i.h)(r)+"."+(0,i.h)(o)},l=(e,t)=>{var[n,s]=e.split("."),r=c(t),i=(0,o.v)(n).map(e=>r[e]),a=(0,o.v)(s).map(e=>r[e]),u=t.map(e=>{var{id:t}=e;return t});return{vendors:{enabled:i.filter(e=>e),disabled:u.filter(e=>-1===i.indexOf(e))},vendors_li:{enabled:a.filter(e=>e),disabled:u.filter(e=>-1===a.indexOf(e))}}},d=e=>e.reduce((e,t)=>(0,s.A)({},e,{[t.id]:(0,r.Jt)(t,"namespaces.google.id")}),{}),c=e=>e.reduce((e,t)=>(0,s.A)({},e,{[(0,r.Jt)(t,"namespaces.google.id")]:t.id}),{})},27565:function(e,t){"use strict";var n={instance:null},s=[];function r(e,t){var n=JSON.parse(t.state),r=Object.keys(n.actionsById).filter(function(e){return parseInt(e,10)<=t.payload.id}),i=0;setTimeout(function t(){!function(t){if("initialState"===t.type)e.setState(n.computedStates[0].state);else{var r=s.find(function(e){return t.type===e.key});r&&r.fn()}}(n.actionsById[r[i]].action),++i>=r.length||setTimeout(t,10)},0)}function i(e){"DISPATCH"===e.type&&("JUMP_TO_ACTION"===e.payload.type||"JUMP_TO_STATE"===e.payload.type?this.setState(JSON.parse(e.state)):"TOGGLE_ACTION"===e.payload.type&&r(this,e))}function o(e,t){if(!t.initialized){var s=i.bind(e);n.instance&&n.instance.subscribe(s),t.initialized=!0}}var a=function(e){return function(t,r){return function(i){var u=t(i);o(e,a),function(e,t){var n=s.find(function(t){return e.name===t.key});n||(n={key:e.name,fn:t},s.push(n))}(i,function(){return t(i)});var l={type:i.name,args:r};return u&&u.then?u.then(function(){return n.instance&&n.instance.send(l,e.getState())}):(n.instance&&n.instance.send(l,e.getState()),u)}}};"object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__},29690:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var s=n(34576),r=n(20259),i=n(73412),o=(0,s.EW)(()=>{var e,t,n;if(null==(e=r.bK.value)||!e.version||null==(t=r.bK.value)||!t.preferences)return[];var{sensitivePersonalInformation:s}=r.bK.value.preferences;return(null==s||null==(n=s.categories)?void 0:n.flatMap(e=>e.children.filter(e=>{var t;return"purpose"===e.type&&void 0!==(null==(t=i.m.value)?void 0:t[e.purposeId])}).map(e=>i.m.value[e.purposeId])))||[]})},33207:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var s=e=>{var{vendor:t,userStatus:n,processingRules:s=["consent","legitimate_interest"]}=e,r=!0;if(s.includes("legitimate_interest")){var i=Array.isArray(t.legIntPurposeIds)&&t.legIntPurposeIds.length>0,o=Array.isArray(t.purposeIds)&&t.purposeIds.length>0;(i||o&&!s.includes("consent"))&&(r=r&&n.byLegalBasis.li.vendorsById[t.id])}return s.includes("consent")&&Array.isArray(t.purposeIds)&&t.purposeIds.length>0&&(r=r&&n.byLegalBasis.consent.vendorsById[t.id]),r},r=e=>{var{vendor:t,userStatus:n,processingRules:r=["consent","legitimate_interest"]}=e,i=!0;if(r.includes("legitimate_interest")){var o=Array.isArray(t.legIntPurposeIds)&&t.legIntPurposeIds.length>0,a=Array.isArray(t.purposeIds)&&t.purposeIds.length>0;o?i=t.legIntPurposeIds.reduce((e,t)=>!1===e?e:n.byLegalBasis.li.purposesById[t],i):a&&!r.includes("consent")&&(i=t.purposeIds.reduce((e,t)=>{if(!1===e||void 0===e)return e;var s=n.byLegalBasis.li.purposesById[t];return void 0!==s?s:!0===n.byLegalBasis.consent.purposesById[t]||s},i))}return r.includes("consent")&&Array.isArray(t.purposeIds)&&t.purposeIds.length>0&&(i=t.purposeIds.reduce((e,t)=>!1===e?e:n.byLegalBasis.consent.purposesById[t],i)),s({vendor:t,userStatus:n,processingRules:r})&&i},i=e=>{var{requiredVendors:t,isConsentRequired:n,userStatus:i,processingRules:o=["legitimate_interest","consent"]}=e,a={allowed:[],denied:[],unknown:[]},u={allowed:[],denied:[],unknown:[]};for(var l of t){var d=s({vendor:l,processingRules:o,userStatus:i}),c=r({vendor:l,processingRules:o,userStatus:i}),p=void 0;p="didomi"===l.namespace||"iab"===l.namespace?l.namespace+":"+l.id:l.id;var v=Array.isArray(l.purposeIds)&&l.purposeIds.length>0&&(!Array.isArray(l.legIntPurposeIds)||0===l.legIntPurposeIds.length)&&!o.includes("consent");!0===c?a.allowed.push(p):!1===c?a.denied.push(p):n||v?a.unknown.push(p):a.allowed.push(p);var h=v?c:d;!0===h?u.allowed.push(p):!1===h?u.denied.push(p):n||v?u.unknown.push(p):u.allowed.push(p)}return{vendorsByStatusWithPurposes:a,vendorsByStatusWithoutPurposes:u}}},34576:function(e,t,n){"use strict";function s(){throw new Error("Cycle detected")}function r(){if(a>1)a--;else{for(var e,t=!1;void 0!==o;){var n=o;for(o=void 0,u++;void 0!==n;){var s=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&v(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=s}}if(u=0,a--,t)throw e}}n.d(t,{EW:function(){return m},HN:function(){return c},QZ:function(){return C},vP:function(){return p}});var i=void 0;var o=void 0,a=0,u=0,l=0;function d(e){if(void 0!==i){var t=e.n;if(void 0===t||t.t!==i)return t={i:0,S:e,p:i.s,n:void 0,t:i,e:void 0,x:void 0,r:t},void 0!==i.s&&(i.s.n=t),i.s=t,e.n=t,32&i.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=i.s,t.n=void 0,i.s.n=t,i.s=t),t}}function c(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function p(e){return new c(e)}function v(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function h(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function f(e){for(var t=e.s,n=void 0;void 0!==t;){var s=t.p;-1===t.i?(t.S.U(t),void 0!==s&&(s.n=t.n),void 0!==t.n&&(t.n.p=s)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=s}e.s=n}function g(e){c.call(this,void 0),this.x=e,this.s=void 0,this.g=l-1,this.f=4}function m(e){return new g(e)}function b(e){var t=e.u;if(e.u=void 0,"function"==typeof t){a++;var n=i;i=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,I(e),t}finally{i=n,r()}}}function I(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,b(e)}function y(e){if(i!==this)throw new Error("Out-of-order effect");f(this),i=e,this.f&=-2,8&this.f&&I(this),r()}function S(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function C(e){var t=new S(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}c.prototype.h=function(){return!0},c.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},c.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},c.prototype.subscribe=function(e){var t=this;return C(function(){var n=t.value,s=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=s}})},c.prototype.valueOf=function(){return this.value},c.prototype.toString=function(){return this.value+""},c.prototype.toJSON=function(){return this.value},c.prototype.peek=function(){return this.v},Object.defineProperty(c.prototype,"value",{get:function(){var e=d(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(i instanceof g&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){u>100&&s(),this.v=e,this.i++,l++,a++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{r()}}}}),(g.prototype=new c).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===l)return!0;if(this.g=l,this.f|=1,this.i>0&&!v(this))return this.f&=-2,!0;var e=i;try{h(this),i=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return i=e,f(this),this.f&=-2,!0},g.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}c.prototype.S.call(this,e)},g.prototype.U=function(e){if(void 0!==this.t&&(c.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},g.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},g.prototype.peek=function(){if(this.h()||s(),16&this.f)throw this.v;return this.v},Object.defineProperty(g.prototype,"value",{get:function(){1&this.f&&s();var e=d(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),S.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},S.prototype.S=function(){1&this.f&&s(),this.f|=1,this.f&=-9,b(this),h(this),a++;var e=i;return i=this,y.bind(this,e)},S.prototype.N=function(){2&this.f||(this.f|=2,this.o=o,o=this)},S.prototype.d=function(){this.f|=8,1&this.f||I(this)}},34751:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var s=n(19621);class r{constructor(){this.satellite=new s.Wrapper("_satellite")}update(e){var{type:t="didomi-consent-changed",customVariables:n={}}=e;for(var s in n)this.satellite.call("setVar",s,n[s]);this.satellite.call("track",t)}}},34768:function(e,t,n){"use strict";n.d(t,{l:function(){return u}});var s=n(34576),r=n(50378),i=n(20259),o={enable:!0,daysBeforeShowingAgain:0,closeOnClick:!1,closeOnClickNavigationDelay:0,closeOnScroll:!1,closeOnScrollThresholdType:"percent",closeOnScrollThreshold:30,closeOnClickBackdrop:!1,type:"info",position:"panel-bottom-right",textAlignment:"left",logoAlignment:"center",learnMore:!0,learnMoreURL:null,learnMorePosition:null,showDataProcessing:!1,palette:{notice:{background:"#ffffff",text:null},button:{background:null,border:"rgba(34, 34, 34, 0.2)",text:null},hightlightButton:{background:null,border:"rgba(34, 34, 34, 0.2)",text:null}},canCloseAndIgnore:!1,denyAsPrimary:!0,denyAsLink:!1,denyAppliesToLI:!1,denyOptions:null,enableBulkActionOnPurposes:!1},a=n(11843),u=(0,s.EW)(()=>{var e,t,n,s,u,l=(0,r.or)(o,(null==(e=i.bK.value)?void 0:e.notice)||{});return l.denyAsPrimary=l.denyOptions?"primary"===l.denyOptions.button:!0===l.denyAsPrimary,l.type=null==l||null==(t=l.denyOptions)||!t.button||"none"===(null==l||null==(n=l.denyOptions)?void 0:n.button)||null==l||null==(s=l.denyOptions)||!s.link||null!=l&&l.type?null==l?void 0:l.type:"optin","ccpa"===(null==(u=a.r.value)?void 0:u.name)&&(l.type="optout"),l.position=l.position||"top",l.daysBeforeShowingAgain=parseInt(""+((null==l?void 0:l.daysBeforeShowingAgain)||0),10),l})},34905:function(e,t,n){var s=["responseType","withCredentials","timeout","onprogress"];function r(e,t,n){e[t]=e[t]||n}t.ajax=function(e,t){var i=e.headers||{},o=e.body,a=e.method||(o?"POST":"GET"),u=!1,l=function(e){if(e&&n.g.XDomainRequest&&!/MSIE 1/.test(navigator.userAgent))return new XDomainRequest;if(n.g.XMLHttpRequest)return new XMLHttpRequest}(e.cors);function d(e,n){return function(){u||(t(void 0===l.status?e:l.status,0===l.status?"Error":l.response||l.responseText||n,l),u=!0)}}l.open(a,e.url,!0);var c=l.onload=d(200);l.onreadystatechange=function(){4===l.readyState&&c()},l.onerror=d(null,"Error"),l.ontimeout=d(null,"Timeout"),l.onabort=d(null,"Abort"),o&&(r(i,"X-Requested-With","XMLHttpRequest"),n.g.FormData&&o instanceof n.g.FormData||r(i,"Content-Type","application/x-www-form-urlencoded"));for(var p=0,v=s.length;p{var e,t,n;return null==(e=r.R.value)||!e.length||(0,o.Im)(i.o.value)?[]:null==(t=r.R.value)||null==(n=t.map(e=>{var t;return null==(t=i.o.value)?void 0:t[e]}))?void 0:n.filter(Boolean)})},35094:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var s=n(34576),r=n(20152),i=n(16382),o=(0,s.EW)(()=>{var e,t,n="ctv"===(null==(e=(0,i.V)())?void 0:e.platform),s=!(null==(t=r.U.value)||!t.ctvEnabled);return n||s})},35787:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var s=n(58168),r=n(34576),i=n(86784),o=n(9757),a=(0,r.EW)(()=>{var e,t,n;return null!=(e=i.S.value)&&null!=(t=e.purposes)&&t.length?null==(n=i.S.value)?void 0:n.purposes.map(e=>(0,s.A)({},e,{id:o.RQ[e.id],namespace:"iab"})):[]})},35968:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});var s=n(73412),r=e=>{var t;return null==(t=s.m.value)?void 0:t[e]}},36217:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var s=n(20152),r=n(72198),i=n(34576),o=r.t.map(e=>e.id).concat("google"),a=(0,i.EW)(()=>{var e,t,n=null==s.U||null==(e=s.U.value)||null==(t=e.vendors)?void 0:t.didomi;return n&&Array.isArray(n)?n.filter(e=>o.includes(e)):[]})},38311:function(e,t,n){"use strict";function s(e){return e&&o()?window.localStorage.getItem(e):null}function r(e,t){if(o())try{window.localStorage.setItem(e,t)}catch(e){}}function i(e){o()&&window.localStorage.removeItem(e)}function o(){try{return!!window.localStorage}catch(e){return!1}}n.d(t,{AP:function(){return r},_S:function(){return s},bJ:function(){return i}})},39015:function(e,t,n){var s=function(){function e(e,t){for(var n=0;n{var t={};return null==e||e.map(e=>{t[e.id]={id:e.id,purposes:e.purposeIds,flexiblePurposes:e.flexiblePurposeIds,specialPurposes:e.specialPurposeIds,legIntPurposes:e.legIntPurposeIds,features:e.featureIds,specialFeatures:e.specialFeatureIds,name:"",urls:[],dataRetention:{stdRetention:0,purposes:{},specialPurposes:{}},dataDeclaration:[],policyUrl:"",cookieMaxAgeSeconds:0,usesCookies:!0,cookieRefresh:!0,usesNonCookieAccess:!1,deviceStorageDisclosureUrl:"",overflow:{httpGetLimit:32}}}),t},l=e=>{var t={};return null==e||e.map(e=>{t[e.id]={id:e.id,name:"",description:"",purposes:e.purposeIds,specialFeatures:e.specialFeatureIds}}),t},d=n(58168),c=e=>{var t={};return null==e||e.map(e=>{t[e.id]=(0,d.A)({},e,{name:"",description:"",illustrations:[]})}),t},p=e=>{r={vendorListVersion:(s=e).vendorListVersion,lastUpdated:s.lastUpdated,gvlSpecificationVersion:s.gvlSpecificationVersion,tcfPolicyVersion:s.tcfPolicyVersion,purposes:c(s.purposes),specialPurposes:c(s.specialPurposes),features:c(s.features),specialFeatures:c(s.specialFeatures),stacks:l(s.stacks),vendors:u(s.vendors),dataCategories:{}}};!function(e){e.Cookies="cookies",e.CookiesAnalytics="cookies_analytics",e.CookiesMarketing="cookies_marketing",e.CookiesSocial="cookies_social",e.SelectBasicAds="select_basic_ads",e.CreateAdsProfile="create_ads_profile",e.SelectPersonalizedAds="select_personalized_ads",e.CreateContentProfile="create_content_profile",e.SelectPersonalizedContent="select_personalized_content",e.MeasureAdPerformance="measure_ad_performance",e.MeasureContentPerformance="measure_content_performance",e.MarketResearch="market_research",e.ImproveProducts="improve_products",e.UseLimitedDataToSelectContent="use_limited_data_to_select_content"}(i||(i={})),function(e){e.All="all",e.Allow="allow",e.Disallow="disallow",e.ReqConsent="req-consent",e.ReqLI="req-li"}(o||(o={})),function(e){e.List="list",e.All="all"}(a||(a={}));var v,h={[i.Cookies]:1,[i.CookiesAnalytics]:1,[i.CookiesMarketing]:1,[i.CookiesSocial]:1,[i.SelectBasicAds]:2,[i.CreateAdsProfile]:3,[i.SelectPersonalizedAds]:4,[i.CreateContentProfile]:5,[i.SelectPersonalizedContent]:6,[i.MeasureAdPerformance]:7,[i.MeasureContentPerformance]:8,[i.MarketResearch]:9,[i.ImproveProducts]:10,[i.UseLimitedDataToSelectContent]:11};!function(e){e.GeolocationData="geolocation_data",e.DeviceCharacteristics="device_characteristics"}(v||(v={}));var f,g,m,b={[v.GeolocationData]:1,[v.DeviceCharacteristics]:2},I=Object.values(a),y=Object.values(o),S=(e,t,n,s,r)=>{if(t===a.All)return e===o.Allow?[]:r;var i=e===o.Allow,u=new Set,l=new Set(n);if(n&&n.length>0)if(i)for(var d of r)l.has(d)||u.add(d);else for(var c of n)u.add(c);if(s&&s.length>0)if(i){var p=e=>{for(var{start:t,end:n}of s)if(e>=t&&e<=n)return!0;return!1};for(var v of r)p(v)||u.add(v)}else for(var{start:h,end:f}of s)for(var g=h;g<=f;g++)u.add(g);return[...u]},C=[],w=(e,t)=>{Array.isArray(e)&&(C=e.reduce((e,n)=>{if((e=>{if(null==e)return!1;var{id:t,purposeId:n,vendors:s,restrictionType:r}=e,u=null==s?void 0:s.type,l=null==s?void 0:s.ranges,d=null==s?void 0:s.ids,c=!!n&&b[n],p=c?b[n]:h[n];if("string"!=typeof t||0===t.length)return console.error('Didomi - Invalid restriction ID "'+t+'" provided for publisher restrictions'),!1;if(void 0===p)return console.error('Didomi - Invalid purpose ID or special feature ID "'+n+'" provided for publisher restrictions'),!1;if(c){if(u!==a.All)return console.error("Didomi - Only vendor restriction type 'all' is valid for special features"),!1;if(r!==o.Disallow)return console.error("Didomi - Only restriction type 'disallow' is valid for special features"),!1}else{if(void 0===u||!I.includes(u))return console.error('Didomi - Invalid vendor restriction type "'+u+'" provided for publisher restrictions'),!1;if(u===a.List)if(Array.isArray(d)&&0!==d.length){if(!d.every(e=>"number"==typeof e))return console.error("Didomi - Vendor IDs for publisher restrictions should be numerical values"),!1}else{if(!Array.isArray(l)||0===l.length)return console.error("Didomi - Invalid vendor restriction ranges provided for publisher restrictions"),!1;if(!l.every(e=>{var t=new Set(Object.keys(e));return"object"==typeof e&&t.has("start")&&t.has("end")&&e.start{var n,s,{id:r,purposeId:i,vendors:o,restrictionType:a}=e,u=null==o?void 0:o.type,l=null!==(n=null==o?void 0:o.ranges)&&void 0!==n?n:[],d=null!==(s=null==o?void 0:o.ids)&&void 0!==s?s:[];if(void 0!==r&&void 0!==i)return{id:r,purposeId:i,vendors:S(a,u,d,l,t),restrictionType:a,vendorRestrictionType:u}})(n,t);void 0!==s&&e.push(s)}return e},[]))},A={google:755},_={didomiVendorIdsMapping:A,removeDeletedVendors:!1},P=(e,t)=>void 0===e&&void 0===t?void 0:void 0===e?t:void 0===t?e:(0,d.A)({},t,e),E=e=>P(e,_),O={1:i.Cookies,2:i.SelectBasicAds,3:i.CreateAdsProfile,4:i.SelectPersonalizedAds,5:i.CreateContentProfile,6:i.SelectPersonalizedContent,7:i.MeasureAdPerformance,8:i.MeasureContentPerformance,9:i.MarketResearch,10:i.ImproveProducts,11:i.UseLimitedDataToSelectContent},k={1:v.GeolocationData,2:v.DeviceCharacteristics},L=e=>{g=e},T=function(e,t,n,s,r){void 0===r&&(r=!1);var i=((e,t)=>"string"!=typeof e?t?k[e]:O[e]:e)(e,r),a=new Set([o.Disallow,o.Allow,n]);return s.filter(((e,t)=>n=>n.purposeId===e&&n.vendors.includes(t))(i,t)).some(e=>a.has(e.restrictionType))},D=e=>[...new Set(e)];!function(e){e.optin="purposeIds",e.optout="legIntPurposeIds"}(m||(m={}));var U,R,B,V=(e,t,n)=>{if(!n||0===n.length)return[];var s=t===o.ReqConsent?m.optout:m.optin;return((e,t)=>e.flexiblePurposeIds.filter(n=>e[t].includes(n)))(e,s).filter(s=>{var r=T(s,e.id,o.Disallow,n),i=T(s,e.id,t,n);return!r&&i})},N=()=>void 0===(null==s?void 0:s.vendors)?void 0:((e,t)=>t&&0!==t.length?e.reduce((e,n)=>{var s=(0,d.A)({},n,{purposeIds:n.purposeIds.filter(e=>!T(e,n.id,o.ReqLI,t,!1)),legIntPurposeIds:n.legIntPurposeIds.filter(e=>!T(e,n.id,o.ReqConsent,t,!1)),specialFeatureIds:n.specialFeatureIds.filter(e=>!T(e,n.id,o.Disallow,t,!0))});return s.purposeIds=D([...s.purposeIds,...V(n,o.ReqConsent,t)]),s.legIntPurposeIds=D([...s.legIntPurposeIds,...V(n,o.ReqLI,t)]),(e=>0===e.purposeIds.length&&0===e.legIntPurposeIds.length&&0===e.specialPurposeIds.length)(s)||e.push(s),e},[]):e)(s.vendors,null!=C?C:[]),x=()=>{var e=N();if(void 0===f||void 0===e)return[];var t=((e,t)=>{var n,s,r,i,o,a,u=null===(n=e.vendors)||void 0===n?void 0:n.iab,l=new Set;if(!u)return l;var d=new Set(t.map(e=>e.id)),c=t.reduce((e,t)=>(t.tmpDeletedDate&&e.add(t.id),e),new Set),p=!0===(null==g?void 0:g.removeDeletedVendors);if(Array.isArray(u)&&(l=new Set(u.filter(e=>d.has(e)))),u===Object(u)&&u.all)l=new Set(d);else if(u.include&&Array.isArray(u.include))for(var v of u.include)d.has(v)&&l.add(v);if(u.exclude&&Array.isArray(u.exclude))for(var h of u.exclude)l.delete(h);var f=null!==(r=null===(s=null==g?void 0:g.didomiVendorIdsMapping)||void 0===s?void 0:s.google)&&void 0!==r?r:A.google,m=null===(i=u.include)||void 0===i?void 0:i.includes(f),b=null===(o=u.exclude)||void 0===o?void 0:o.includes(f),I=null===(a=e.vendors)||void 0===a?void 0:a.didomi,y=null==I?void 0:I.includes("google");if(p)for(var S of l)c.has(S)&&l.delete(S);return(u.all||m||y)&&!b&&l.add(f),l})(f,e);return null==e?void 0:e.filter(e=>t.has(e.id))},M=Object.values(O),F={amazon:{purposeIds:M,legIntPurposeIds:[],didomiId:"amazon",id:"amazon"},facebook:{purposeIds:[i.Cookies,i.CreateAdsProfile,i.SelectPersonalizedAds],legIntPurposeIds:[i.SelectBasicAds,i.MeasureAdPerformance,i.MarketResearch,i.ImproveProducts],didomiId:"facebook",id:"facebook"},twitter:{purposeIds:[i.Cookies],legIntPurposeIds:[],didomiId:"twitter",id:"twitter"},whatsapp:{purposeIds:[i.Cookies],legIntPurposeIds:[],didomiId:"whatsapp",id:"whatsapp"},"google-adsense":{purposeIds:M,legIntPurposeIds:[],id:"google-adsense",didomiId:"google-adsense"},"google-adx":{purposeIds:M,legIntPurposeIds:[],id:"google-adsense",didomiId:"google-adx"},addthis:{purposeIds:M,legIntPurposeIds:[],didomiId:"addthis",id:"google-adsense"},salesforce:{purposeIds:M,legIntPurposeIds:[],didomiId:"salesforce",id:"salesforce"}},z=()=>{var e=x(),t=(e=>{var t,n;return null!==(n=null===(t=null==e?void 0:e.vendors)||void 0===t?void 0:t.custom)&&void 0!==n?n:[]})(f),n=(e=>{var t,n;return(null!==(n=null===(t=null==e?void 0:e.vendors)||void 0===t?void 0:t.didomi)&&void 0!==n?n:[]).map(e=>F[e]).filter(Boolean)})(f);if(e&&0!==e.length||t&&t.length||n&&n.length)return function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=[]);var s={purposes:{ids:new Set,optin:new Set,optout:new Set,essential:new Set},vendors:{optin:new Set,optout:new Set,disclosed:new Set,specialFeatures:new Set,specialPurposes:new Set}};for(var r of e){var i=new Set;if(s.vendors.disclosed.add(r.id),r.legIntPurposeIds&&r.legIntPurposeIds.length>0)for(var o of(s.vendors.optout.add(r.id),r.legIntPurposeIds)){var a=O[o];s.purposes.optout.add(a),s.purposes.ids.add(a),i.add("optout")}if(r.purposeIds&&r.purposeIds.length>0)for(var u of(s.vendors.optin.add(r.id),r.purposeIds)){var l=O[u];s.purposes.optin.add(l),s.purposes.ids.add(l),i.add("optin")}if(r.specialFeatureIds&&r.specialFeatureIds.length>0){for(var d of r.specialFeatureIds){var c=k[d];s.purposes.optin.add(c),s.purposes.ids.add(c),i.add("optin")}r.purposeIds&&0==r.purposeIds.length&&(s.vendors.specialFeatures.add(r.id),i.add("specialFeatures"))}0===i.size&&r.specialPurposeIds.length>0&&(s.vendors.specialPurposes.add(r.id),i.add("specialPurposes"))}var p=[...t,...n];for(var v of p){if(v.legIntPurposeIds&&v.legIntPurposeIds.length>0)for(var f of v.legIntPurposeIds)(h[f]||b[f])&&(s.purposes.optout.add(f),s.purposes.ids.add(f));if(v.purposeIds&&v.purposeIds.length>0)for(var g of v.purposeIds)(h[g]||b[g])&&(s.purposes.optin.add(g),s.purposes.ids.add(g))}return{vendors:{optin:[...s.vendors.optin],optout:[...s.vendors.optout],disclosed:[...s.vendors.disclosed],specialFeatures:[...s.vendors.specialFeatures],specialPurposes:[...s.vendors.specialPurposes]},purposes:{ids:[...s.purposes.ids],optin:[...s.purposes.optin],optout:[...s.purposes.optout],essential:[...s.purposes.essential]}}}(e,t,n)},j=e=>{U=e},W=e=>{R=e},G=e=>/^[A-Za-z0-9-_]+$/.test(e),J=()=>{var e,t,n,s,r,o={processingRules:{ids:new Set,optin:new Set,optout:new Set}},a=(()=>{var e,t=null==f?void 0:f.customPurposes,n=null!==(e=null==f?void 0:f.disabledPurposes)&&void 0!==e?e:[],s=[];if(t&&Array.isArray(t))for(var r of t)"string"==typeof r.id&&G(r.id)?n.includes(r.id)||s.push((0,d.A)({},r,{namespace:"custom"})):console.error('Didomi - The purpose id "'+r.id+'" is not valid. Ignoring it.');return s})(),u=a.map(e=>String(e.id)),l=(e=>{var t=null==f?void 0:f.essentialPurposes;if(!t||!Array.isArray(t))return new Set;var n=new Set(e);return t.reduce((e,t)=>(n.has(t)&&e.add(t),e),new Set)})(u),c=Object.values(i),p=new Set([...c,...u]),v=null!==(t=null===(e=null==f?void 0:f.vendors)||void 0===e?void 0:e.custom)&&void 0!==t?t:[],h=e=>p.has(e),g=new Set,m=a.reduce((e,t)=>{var n,s=null===(n=t.namespaces)||void 0===n?void 0:n.pub,r=t.id;return s&&(e=>"number"==typeof e&&e>0)(s)&&"string"==typeof r&&p.has(r)&&(e[r]=s),e},{});if(Array.isArray(v))for(var b of v){var I=(null!==(n=b.purposeIds)&&void 0!==n?n:[]).filter(h),y=(null!==(s=b.legIntPurposeIds)&&void 0!==s?s:[]).filter(h);for(var S of I)g.add(S);for(var C of y)g.add(C);if("1st_party"===b.type&&(I.length>0||y.length>0)){for(var w of I)o.processingRules.ids.add(w),l.has(w)||o.processingRules.optin.add(w);for(var A of y)o.processingRules.ids.add(A),l.has(A)||o.processingRules.optout.add(A)}}var _=new Set(null!==(r=null==U?void 0:U.purposes.ids)&&void 0!==r?r:c);for(var P of u)o.processingRules.ids.has(P)||_.has(P)||g.has(P)||(o.processingRules.ids.add(P),l.has(P)||o.processingRules.optin.add(P));return{processingRules:{ids:[...o.processingRules.ids],optin:[...o.processingRules.optin],optout:[...o.processingRules.optout],essential:[...l]},mapping:m}},q=function(e,t,n){var s,r,i,o,a,u;void 0===n&&(n=void 0),p(e),L(E(n)),(e=>{f=e})(t);var l=null!==(s=e.vendors.map(e=>e.id))&&void 0!==s?s:[],d=null!==(o=null===(i=null===(r=null==t?void 0:t.vendors)||void 0===r?void 0:r.iab)||void 0===i?void 0:i.restrictions)&&void 0!==o?o:[];w(d,l),j(null!==(a=null==g?void 0:g.processingRules)&&void 0!==a?a:z()),W(null!==(u=null==g?void 0:g.firstPartyPurposes)&&void 0!==u?u:J())},K=n(76638),H=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())),Z=(e,t)=>e.reduce((e,n)=>{if("number"==typeof n)e.push(n);else{var s=t[n];void 0!==s&&e.push(s)}return e},[]),Y=e=>{switch(e){case o.Allow:case o.Disallow:return 0;case o.ReqConsent:return 1;case o.ReqLI:return 2}};!function(e){e[e.consentOnly=0]="consentOnly",e[e.consentAndLegitimateInterest=1]="consentAndLegitimateInterest"}(B||(B={}));var $={1:B.consentOnly,2:B.consentAndLegitimateInterest,3:B.consentOnly,4:B.consentOnly,5:B.consentOnly,6:B.consentOnly,7:B.consentAndLegitimateInterest,8:B.consentAndLegitimateInterest,9:B.consentAndLegitimateInterest,10:B.consentAndLegitimateInterest,11:B.consentAndLegitimateInterest},Q=()=>{var e=[];for(var t in O){var n=parseInt(t,10);$[n]===B.consentOnly&&e.push(n)}return e},X=()=>{if("object"!=typeof s||"object"!=typeof r)throw new Error("Didomi - IAB TCF not initialized")},ee=function(e,t){var n,i;if(void 0===t&&(t=void 0),"object"!=typeof s||"object"!=typeof r||"object"!=typeof g)throw new Error("Didomi - IAB TCF not initialized");var u=null!==(i=null===(n=null==U?void 0:U.vendors)||void 0===n?void 0:n.specialPurposes)&&void 0!==i?i:[],l=g.didomiVendorIdsMapping,d=Z(e.purposes.enabled,h),c=Z(e.purposes.enabled,b),p=Z(e.vendors.enabled,l),v=Z(e.vendors_li.enabled,l),m=Z(e.purposes_li.enabled,h),I=H(new Date(e.created)),y=H(new Date(e.updated)),S=new K.jT(new K.aI(r));S.vendorListVersion=r.vendorListVersion,S.cmpId=null==t?void 0:t.cmpId,S.cmpVersion=null==t?void 0:t.cmpVersion,S.created=I,S.lastUpdated=y,S.consentScreen=1,S.consentLanguage=null==t?void 0:t.consentLanguage,S.isServiceSpecific=!0;var w=(e=>null==e?void 0:e.country)(f);for(var A of(w&&(S.publisherCountryCode=w),S.purposeConsents.set(d),S.purposeLegitimateInterests.set(m),S.purposeLegitimateInterests.unset(Q()),S.vendorConsents.set(p),S.vendorLegitimateInterests.set(v),u&&u.length>0&&S.vendorLegitimateInterests.set(u),S.publisherConsents.set(d),S.publisherLegitimateInterests.set(m),S.specialFeatureOptins.set(c),C)){var _=new K.FY;if(_.purposeId=h[A.purposeId],void 0!==_.purposeId){var P=Y(A.restrictionType);if(void 0!==P)if(_.restrictionType=P,A.vendorRestrictionType===a.All)A.restrictionType===o.Allow?S.publisherRestrictions.restrictPurposeToLegalBasis(_,[]):S.publisherRestrictions.restrictPurposeToLegalBasis(_);else{var E=Z(A.vendors,l);for(var O of E)S.publisherRestrictions.add(O,_)}}}return R&&R.processingRules.ids.length>0&&function(e,t,n){if(void 0===n&&(n=!1),X(),R){var{processingRules:s,mapping:r}=R,i=s.ids.filter(e=>h[e]||r[e]);if(0!==i.length){n||(t.publisherConsents.empty(),t.publisherLegitimateInterests.empty());var o=new Set(s.optin),a=new Set(s.optout),u=t=>o.has(t)&&e.purposes.enabled.includes(t),l=t=>a.has(t)&&e.purposes_li.enabled.includes(t),d=0;for(var c of i){var p=h[c];if(p)u(c)&&t.publisherConsents.set(p),l(c)&&t.publisherLegitimateInterests.set(p);else{var v=r[c];v&&v>=1&&v<=63&&(d{(null==t?void 0:t.disclosedVendorsSegment)&&(X(),(null==s?void 0:s.vendors)&&(e.vendorsDisclosed.empty(),null==U||U.vendors.disclosed.forEach(t=>{e.vendorsDisclosed.set(Number(t))})))})(S,t),S},te={cmpId:7,cmpVersion:1,consentScreen:1,consentLanguage:"EN",isServiceSpecific:!0,disclosedVendorsSegment:!1,alwaysAddPurposesStatusToPublisherConsent:!1},ne=function(e,t){void 0===t&&(t=void 0);var n,s=((e,t)=>P(P(e,t),te))(t,null==g?void 0:g.encoderOptions),r=ee(e,s);return(r.publisherConsents.size>0||r.publisherLegitimateInterests.size>0||r.publisherCustomConsents.size>0||r.publisherCustomLegitimateInterests.size>0)&&(n={segments:[K.Y4.CORE,K.Y4.PUBLISHER_TC]}),r.vendorsDisclosed.size>0&&(n=n?{segments:[K.Y4.CORE,K.Y4.VENDORS_DISCLOSED,K.Y4.PUBLISHER_TC]}:{segments:[K.Y4.CORE,K.Y4.VENDORS_DISCLOSED]}),K.de.encode(r,n)},se=e=>Array.isArray(e)&&e.length>0,re=e=>void 0!==e&&void 0===e.deletedDate,ie=function(e,t){if(void 0===t&&(t=!0),"object"!=typeof s||"object"!=typeof r||"object"!=typeof g)throw new Error("Didomi - IAB TCF not initialized");var n={vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},created:e.created.toISOString(),updated:e.lastUpdated.toISOString()},i=Object.values(g.didomiVendorIdsMapping),o=new Set(Q()),a=new Set((e=>Object.keys(e.vendors).reduce((t,n)=>{var s=e.vendors[n];return s&&s.specialPurposes.length>0&&0===s.purposes.length&&0===s.legIntPurposes.length&&0===s.specialFeatures.length&&t.push(s.id),t},[]))(r));return[...e.vendorConsents].forEach(e=>{var[t,s]=e;if(!i.includes(t))if(s)n.vendors.enabled.push(t);else{var o=null==r?void 0:r.vendors[t];se(null==o?void 0:o.purposes)&&re(o)&&n.vendors.disabled.push(t)}}),[...e.vendorLegitimateInterests].forEach(e=>{var[t,s]=e;if(!i.includes(t)&&!a.has(t))if(s)n.vendors_li.enabled.push(t);else{var o=null==r?void 0:r.vendors[t];se(null==o?void 0:o.legIntPurposes)&&re(o)&&n.vendors_li.disabled.push(t)}}),[...e.purposeConsents].forEach(e=>{var[t,s]=e,r=O[t];r&&(s?n.purposes.enabled.push(r):n.purposes.disabled.push(r))}),[...e.purposeLegitimateInterests].forEach(e=>{var[t,s]=e,r=O[t];r&&(s&&!o.has(t)?n.purposes_li.enabled.push(r):o.has(t)||n.purposes_li.disabled.push(r))}),t&&[...e.specialFeatureOptins].forEach(e=>{var[t,s]=e,r=k[t];r&&(s?n.purposes.enabled.push(r):n.purposes.disabled.push(r))}),(e=>Object.keys(e.vendors).reduce((t,n)=>{var s=e.vendors[n];return s&&s.specialFeatures.length>0&&0===s.purposes.length&&t.push(s.id),t},[]))(r).forEach(t=>{var s,i=null===(s=null==r?void 0:r.vendors[t])||void 0===s?void 0:s.specialFeatures;!e.vendorConsents.has(t)&&(null==i?void 0:i.every(t=>e.specialFeatureOptins.has(t)))?n.vendors.enabled.push(t):e.vendorConsents.has(t)||n.vendors.disabled.push(t)}),n},oe=function(e,t){var n,i,o,a;if(void 0===t&&(t=!0),"object"!=typeof s||"object"!=typeof r||"object"!=typeof g)throw new Error("Didomi - IAB TCF not initialized");var u={vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},created:e.created.toISOString(),updated:e.lastUpdated.toISOString()},l=Object.values(g.didomiVendorIdsMapping);if(void 0===U)return ie(e,t);var d=[...new Set([...U.purposes.optin,...null!==(i=null===(n=null==R?void 0:R.processingRules)||void 0===n?void 0:n.optin)&&void 0!==i?i:[]])],c=[...new Set([...U.purposes.optout,...null!==(a=null===(o=null==R?void 0:R.processingRules)||void 0===o?void 0:o.optout)&&void 0!==a?a:[]])];for(var p of U.vendors.optin){var v="number"==typeof p?p:void 0;v&&!l.includes(v)&&(e.vendorConsents.has(v)?u.vendors.enabled.push(v):u.vendors.disabled.push(v))}for(var f of U.vendors.optout){var m="number"==typeof f?f:void 0;m&&!l.includes(m)&&(e.vendorLegitimateInterests.has(m)?u.vendors_li.enabled.push(m):u.vendors_li.disabled.push(m))}for(var I of d){var y=h[I];if(y)e.purposeConsents.has(y)?u.purposes.enabled.push(I):u.purposes.disabled.push(I);else{var S=b[I];S&&t&&(e.specialFeatureOptins.has(S)?u.purposes.enabled.push(I):u.purposes.disabled.push(I))}}for(var C of c){var w=h[C];w&&(e.purposeLegitimateInterests.has(w)?u.purposes_li.enabled.push(C):u.purposes_li.disabled.push(C))}for(var A of U.vendors.specialFeatures){var _=null==r?void 0:r.vendors[A];_&&(e.vendorConsents.has(_.id)||_.specialFeatures.every(t=>e.specialFeatureOptins.has(t))?u.vendors.enabled.push(_.id):e.vendorConsents.has(_.id)||u.vendors.disabled.push(_.id))}return u},ae={checkCMPId:!1,defaultCMPId:7,returnTCModel:!1},ue=function(e,t){var n;if(void 0===t&&(t=void 0),"object"!=typeof s||"object"!=typeof r||"object"!=typeof g)throw new Error("Didomi - IAB TCF not initialized");var i=((e,t)=>P(P(e,t),ae))(t,null==g?void 0:g.decoderOptions);if(!i)return null;var{checkCMPId:o,defaultCMPId:a,returnTCModel:u}=i,l=null!==(n=(e=>{var t,n,s,r,i,o;if((null===(n=null===(t=null==e?void 0:e.vendors)||void 0===t?void 0:t.iab)||void 0===n?void 0:n.cmpId)&&"number"==typeof(null===(r=null===(s=null==e?void 0:e.vendors)||void 0===s?void 0:s.iab)||void 0===r?void 0:r.cmpId))return null===(o=null===(i=null==e?void 0:e.vendors)||void 0===i?void 0:i.iab)||void 0===o?void 0:o.cmpId})(f))&&void 0!==n?n:a;try{var d=K.de.decode(e);return o&&d.cmpId!==l?null:u?d:oe(d)}catch(e){return null}},le=e=>({vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},created:e,updated:e}),de={defaultLIToEnabled:!0,generate:{default:!0,positive:!0,negative:!0}},ce=e=>{var t,n,s,i,o,a,u=(e=>P(e,de))(e),l=null!==(t=null==u?void 0:u.defaultStringsCreatedDate)&&void 0!==t?t:H(new Date).toISOString(),d={created:l,vendorListVersion:null!==(n=null==r?void 0:r.vendorListVersion)&&void 0!==n?n:0},c=null===(s=null==u?void 0:u.defaultLIToEnabled)||void 0===s||s;return(null===(i=null==u?void 0:u.generate)||void 0===i?void 0:i.default)&&(d.default=ne(((e,t,n,s)=>{var r=le(n);if(void 0===t||!e)return r;if(t&&e){for(var i of t.purposes.optout)r.purposes_li.enabled.push(i);for(var o of t.vendors.optout)r.vendors_li.enabled.push(o);if(s&&s.processingRules.ids.length>0)for(var a of s.processingRules.optout)r.purposes_li.enabled.push(a)}return r})(c,U,l,R))),(null===(o=null==u?void 0:u.generate)||void 0===o?void 0:o.positive)&&(d.positive=ne(((e,t,n)=>{var s=le(t);if(void 0===e)return s;if(e){for(var r of e.purposes.optin)s.purposes.enabled.push(r);for(var i of e.purposes.optout)s.purposes_li.enabled.push(i);for(var o of e.vendors.optin)s.vendors.enabled.push(o);for(var a of e.vendors.optout)s.vendors_li.enabled.push(a)}if(n&&n.processingRules.ids.length>0){for(var u of n.processingRules.optin)s.purposes.enabled.push(u);for(var l of n.processingRules.optout)s.purposes_li.enabled.push(l)}return s})(U,l,R))),(null===(a=null==u?void 0:u.generate)||void 0===a?void 0:a.negative)&&(d.negative=ne(((e,t,n)=>{var s=le(t);if(void 0===e)return s;if(e){for(var r of e.purposes.optin)s.purposes.disabled.push(r);for(var i of e.purposes.optout)s.purposes_li.disabled.push(i);for(var o of e.vendors.optin)s.vendors.disabled.push(o);for(var a of e.vendors.optout)s.vendors_li.disabled.push(a)}if(n&&n.processingRules.ids.length>0){for(var u of n.processingRules.optin)s.purposes.disabled.push(u);for(var l of n.processingRules.optout)s.purposes_li.disabled.push(l)}return s})(U,l,R))),d},pe=e=>({vendorListVersion:e.v,lastUpdated:e.l,gvlSpecificationVersion:e.gsv,tcfPolicyVersion:e.tpv,purposes:e.p.map(e=>({id:e})),specialPurposes:e.sp.map(e=>({id:e})),features:e.f.map(e=>({id:e})),specialFeatures:e.sf.map(e=>({id:e})),stacks:e.st.map(e=>({id:e.i,purposeIds:e.p||[],specialFeatureIds:e.sf||[]})),vendors:e.s.map(e=>({id:e.i,purposeIds:e.p||[],flexiblePurposeIds:e.fp||[],specialPurposeIds:e.sp||[],legIntPurposeIds:e.l||[],featureIds:e.f||[],specialFeatureIds:e.sf||[],didomiId:e.di,tmpDeletedDate:e.dd}))}),ve=()=>null==s?void 0:s.purposes.map(e=>(0,d.A)({},e,{id:O[e.id],namespace:"iab"})),he=()=>s,fe=n(94382),ge=n(43682),me=e=>e?Object.keys(e).map(t=>e[t]):[],be=(e,t)=>e&&Array.isArray(e)&&0!==e.length?e.reduce((e,n)=>{if(n)if("string"==typeof n){var s=t[n];s&&e.push(s)}else"number"==typeof n&&e.push(n);return e},[]):[],Ie=function(e,t,n,r,i,o){var a,u,l,c,v,h,f;void 0===o&&(o=void 0),p((e=>{var t=Object.keys(e.vendors).map(t=>({id:e.vendors[t].id,tmpDeletedDate:e.vendors[t].deletedDate,purposeIds:e.vendors[t].purposes,flexiblePurposeIds:e.vendors[t].flexiblePurposes,specialPurposeIds:e.vendors[t].specialPurposes,legIntPurposeIds:e.vendors[t].legIntPurposes,featureIds:e.vendors[t].features,specialFeatureIds:e.vendors[t].specialFeatures,didomiId:e.vendors[t].didomiId||""})),n=me(e.purposes),s=me(e.specialPurposes),r=me(e.features),i=me(e.specialFeatures),o=me(e.stacks).map(e=>({id:e.id,name:e.name,purposeIds:e.purposes,specialFeatureIds:e.specialFeatures})),a=new Date(e.lastUpdated).toISOString();return{vendorListVersion:e.vendorListVersion,lastUpdated:a,gvlSpecificationVersion:e.gvlSpecificationVersion,tcfPolicyVersion:e.tcfPolicyVersion,vendors:t,purposes:n,specialPurposes:s,features:r,specialFeatures:i,stacks:o}})(e)),L(E(o));var g=be(i,r),m=null!==(a=null==s?void 0:s.vendors.map(e=>e.id))&&void 0!==a?a:[],b=null===(u=t.publisher.restrictions)||void 0===u?void 0:u.map(e=>{var t;return(0,d.A)({},e,{id:e.purposeId+"-"+e.restrictionType,purposeId:e.purposeId,vendors:(0,d.A)({},e.vendors,{ids:be(null===(t=e.vendors)||void 0===t?void 0:t.ids,r)})})});b?w(b,m):C=[];var{token:I,processingRules:y,firstPartyPurposes:S}=function(e,t,n,s,r,i){void 0===i&&(i=void 0);var o={purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},created:new Date(t.created).toISOString(),updated:new Date(t.updated).toISOString()},a={purposes:{ids:new Set,optin:new Set,optout:new Set,essential:new Set},vendors:{optin:new Set,optout:new Set,disclosed:new Set,specialFeatures:new Set,specialPurposes:new Set}},u={processingRules:{ids:new Set,optin:new Set,optout:new Set},mapping:{}},l=e.reduce((e,t)=>(t.tmpDeletedDate&&e.add(t.id),e),new Set),d=!0===(null==i?void 0:i.removeDeletedVendors),c=e=>!(d&&l.has(e)),p=t.vendors.optin.reduce((e,t)=>{var s=n[t];return s&&c(s)&&e.add(s),e},new Set),v=t.vendors.optout.reduce((e,t)=>{var s=n[t];return s&&c(s)&&e.add(s),e},new Set),h=r.reduce((e,t)=>(c(t)&&e.add(t),e),new Set);for(var f of e){var g=new Set;p.has(f.id)&&(a.vendors.optin.add(f.id),o.vendors.enabled.push(f.id),g.add("optin"),a.vendors.disclosed.add(f.id)),v.has(f.id)&&(a.vendors.optout.add(f.id),o.vendors_li.enabled.push(f.id),g.add("optout"),a.vendors.disclosed.add(f.id)),(h.has(f.id)||a.vendors.disclosed.has(f.id))&&(a.vendors.disclosed.add(f.id),f.specialFeatureIds&&f.specialFeatureIds.length>0&&(g.has("optin")||(a.vendors.specialFeatures.add(f.id),g.add("specialFeatures"))),0===g.size&&f.specialPurposeIds.length>0&&(a.vendors.specialPurposes.add(f.id),g.add("specialPurposes")))}var m=e=>({iabId:s.purposes[e],pubId:s.customPurposes[e],specialFeatureId:s.specialFeatures[e]});for(var b of t.purposes.optin){var{iabId:I,pubId:y,specialFeatureId:S}=m(b);I||S?(a.purposes.optin.add(b),a.purposes.ids.add(b),o.purposes.enabled.push(b)):y&&(a.purposes.optin.add(b),a.purposes.ids.add(b),o.purposes.enabled.push(b),u.processingRules.ids.add(b),u.processingRules.optin.add(b),u.mapping[b]=y),(I||S)&&y&&(u.processingRules.ids.add(b),u.processingRules.optin.add(b))}for(var C of t.purposes.optout){var{iabId:w,pubId:A,specialFeatureId:_}=m(C);w||_?(a.purposes.optout.add(C),a.purposes.ids.add(C),o.purposes_li.enabled.push(C)):A&&(a.purposes.optout.add(C),a.purposes.ids.add(C),o.purposes_li.enabled.push(C),u.processingRules.ids.add(C),u.processingRules.optout.add(C),u.mapping[C]=A),(w||_)&&A&&(u.processingRules.ids.add(C),u.processingRules.optout.add(C))}return{token:o,processingRules:{purposes:{ids:[...a.purposes.ids],optin:[...a.purposes.optin],optout:[...a.purposes.optout],essential:[]},vendors:{optin:[...a.vendors.optin],optout:[...a.vendors.optout],disclosed:[...a.vendors.disclosed],specialFeatures:[...a.vendors.specialFeatures],specialPurposes:[...a.vendors.specialPurposes]}},firstPartyPurposes:{processingRules:{ids:[...u.processingRules.ids],optin:[...u.processingRules.optin],optout:[...u.processingRules.optout],essential:[]},mapping:u.mapping}}}(null!==(l=null==s?void 0:s.vendors)&&void 0!==l?l:[],t,r,n,g,o);j(null!==(c=null==o?void 0:o.processingRules)&&void 0!==c?c:y),W(null!==(v=null==o?void 0:o.firstPartyPurposes)&&void 0!==v?v:S);var A=null!==(f=null===(h=null==o?void 0:o.encoderOptions)||void 0===h?void 0:h.disclosedVendorsSegment)&&void 0!==f?f:i.length>0;return ne(I,{disclosedVendorsSegment:A})}},39838:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var s=["ar","dv","fa","ha","he","ks","ku","ps","sd","ug","ur","yi"],r=e=>{if(!e||"string"!=typeof e)return"ltr";var t=e.slice(0,2);return s.includes(t)?"rtl":"ltr"}},40950:function(e,t,n){"use strict";n.d(t,{A:function(){return s},L:function(){return r}});var s=(0,n(34576).vP)({visible:!0}),r=e=>{s.value=e}},41354:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});class s{constructor(e,t,n){this.userStatus=this.getConsentsAndLegitimateInterests(e()),this.setUserStatus=t,this.action=n}getConsentsAndLegitimateInterests(e){return{purposesConsents:e.purposes.consent,vendorsConsents:e.vendors.consent,vendorsLegitimateInterests:e.vendors.legitimate_interest,purposesLegitimateInterests:e.purposes.legitimate_interest}}enablePurpose(e){-1===this.userStatus.purposesConsents.enabled.indexOf(e)&&this.userStatus.purposesConsents.enabled.push(e);var t=this.userStatus.purposesConsents.disabled.indexOf(e);return-1!==t&&this.userStatus.purposesConsents.disabled.splice(t,1),this}enablePurposes(){for(var e=arguments.length,t=new Array(e),n=0;n{var e,t,n;return null!=(e=s.$.value)&&e.length?null==(t=s.$.value)||null==(n=t.filter(e=>{var t;return!(null!=e&&null!=(t=e.namespaces)&&t.didomi)}))?void 0:n.map(e=>e.id):[]})},41990:function(e,t,n){"use strict";n.d(t,{S4:function(){return r},r5:function(){return s}});var s=(0,n(34576).vP)({didomiToken:null,iabConsentString:null}),r=e=>{var{didomiToken:t,iabConsentString:n}=e;s.value={didomiToken:t,iabConsentString:n}}},43029:function(e,t,n){"use strict";n.d(t,{L:function(){return T}});var s=n(34576),r=n(2073),i=n(15067),o=n(11843),a=n(58168),u=n(68200),l=n(72714),d=n(24746),c=n(50010),p=n(80305),v=n(17732),h=(e,t,n)=>{var s,r,i,o=(0,a.A)({user_id:null==(s=u.II.value)?void 0:s.user_id,created:null==(r=u.II.value)?void 0:r.created,updated:null==(i=u.II.value)?void 0:i.updated},l.z.value&&{gpp_string:l.z.value},{vendors:(0,d.Dx)(t,c.C.value),purposes:(0,d.Dx)(n),regulation:e}),h={none:{consent_string:p.M.value,addtl_consent:v.J.value},gdpr:{consent_string:p.M.value,addtl_consent:v.J.value},mixed:{}};return(0,a.A)({},o,h[e])},f=n(67447),g=n(34956),m=n(77396),b=n(56738),I=n(98074),y=(e,t,n)=>{e[t]?e[t].enabled=e[t].enabled&&n:e[t]={id:t,enabled:n}},S=n(58975),C=()=>{var e=[],t=[],n=[],s={},r=m.T.value,i=I.B.value;for(var o of g.h.value)o&&o.purposeIds&&0!==o.purposeIds.length&&((0,b.Z)(o.purposeIds,r)?(e.push(o.id),y(s,o.didomiId,!0)):(0,b.Z)(o.purposeIds,i)||(t.push(o.id),y(s,o.didomiId,!1))),o&&o.legIntPurposeIds&&0!==o.legIntPurposeIds.length&&!(0,b.Z)(o.legIntPurposeIds,i)&&(S.B.value.optout.default&&n.push(o.id),y(s,o.didomiId,S.B.value.optout.default));return{vendors:{enabled:e,disabled:t},vendors_li:{enabled:n,disabled:[]},globalUserStatus:s}},w=()=>{var e={};for(var t of i.t.value.purposeIds)m.T.value.includes(t)?y(e,t,S.B.value.essential.default):i.t.value.purposeIdsBasedOnConsent.includes(t)?y(e,t,S.B.value.optin.default):y(e,t,S.B.value.optout.default);return e},A=(0,s.EW)(()=>{var e=i.t.value.purposeIds,t=i.t.value.purposeIdsBasedOnLI,n=i.t.value.purposeIdsBasedOnConsent,s=m.T.value,r=f.a.value.byLegalBasis.consent.purposes.enabled,o=f.a.value.byLegalBasis.li.purposes.enabled,a=[];for(var u of e){var l=!0;t.includes(u)&&(l=l&&o.includes(u)),n.includes(u)&&(l=l&&r.includes(u)),s.includes(u)&&(l=!0),l&&a.push(u)}var d=e.filter(e=>!a.includes(e));return{enabledPurposeIds:r,enabledLIPurposeIds:o,currentUserStatusEnabledPurposeIds:a,currentUserStatusDisabledPurposeIds:d}}),_=n(26149),P=n(50378),E=n(66559),O=e=>{var t,{vendorId:n,enabledVendorIds:s,enabledPurposeIds:r,type:i}=e;if(!_.H$.value.firstPartyOperatorIds.includes(String(n))&&!s.includes(n))return!1;var o=null==(t=E.o.value)?void 0:t[n];if(o){var a="li"===i?o.legIntPurposeIds:o.purposeIds;return(0,b.Z)((0,P.gi)(a),[...r,...m.T.value])}return!0},k=(0,s.EW)(()=>{var e,t,n=[],s=r.R.value,i=_.H$.value.operatorsByProcessingRule.operatorIds.optout,o=_.H$.value.operatorsByProcessingRule.operatorIds.optin,a=_.H$.value.operatorsByProcessingRule.operatorIds.essential,u=S.B.value.optin.collect.operators.thirdPartyOperators.enable,l=S.B.value.optout.collect.operators.thirdPartyOperators.enable,d=null==(e=S.B.value.optout.collect.operators.thirdPartyOperators.as)?void 0:e.includes("optin"),c=null==(t=S.B.value.optin.collect.operators.thirdPartyOperators.as)?void 0:t.includes("optout"),p=u?f.a.value.byLegalBasis.consent.vendors.enabled:l&&d?f.a.value.byLegalBasis.li.vendors.enabled:r.R.value,v=l?f.a.value.byLegalBasis.li.vendors.enabled:u&&c?f.a.value.byLegalBasis.consent.vendors.enabled:r.R.value,{enabledPurposeIds:h,enabledLIPurposeIds:g}=A.value;for(var m of s){var b=!0;i.includes(m)&&(b=O({vendorId:m,enabledVendorIds:v,enabledPurposeIds:g,type:"li"})),o.includes(m)&&(b=b&&O({vendorId:m,enabledVendorIds:p,enabledPurposeIds:h,type:"consent"})),a.includes(m)&&b?n.push(m):b&&n.push(m)}var I=s.filter(e=>!n.includes(e));return{currentUserStatusEnabledVendorIds:n,currentUserStatusDisabledVendorIds:I}}),L=n(91963),T=(0,s.EW)(()=>{var e,t=null==(e=o.r.value)?void 0:e.name;return"none"===t?h("none",{enabled:r.R.value||[],disabled:[]},{enabled:i.t.value.purposeIds,disabled:[]}):L.p.value?h(t,{enabled:r.R.value||[],disabled:[]},{enabled:i.t.value.purposeIds,disabled:[]}):f.a.value.hasMadeAnyChoice?h(t,{enabled:k.value.currentUserStatusEnabledVendorIds,disabled:k.value.currentUserStatusDisabledVendorIds},{enabled:A.value.currentUserStatusEnabledPurposeIds,disabled:A.value.currentUserStatusDisabledPurposeIds}):(e=>{var t,n,s;return(0,a.A)({vendors:C().globalUserStatus,purposes:w(),regulation:e,user_id:null==(t=u.II.value)?void 0:t.user_id,created:null==(n=u.II.value)?void 0:n.created,updated:null==(s=u.II.value)?void 0:s.updated},"gdpr"===e?{consent_string:p.M.value,addtl_consent:v.J.value}:{},l.z.value?{gpp_string:l.z.value}:{})})(t)})},43682:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var s=n(76638),r=e=>{var t=[];return s.sH.decode(s.XK.decode(e)).forEach((e,n)=>e?t.push(n):null),t}},47488:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var s=n(34576),r=n(6024),i=n(20259),o=(0,s.EW)(()=>{var e,t=null==(e=i.bK.value)?void 0:e.languages;if(!t)return r.cb;if(Array.isArray(t.enabled)&&t.enabled.length>0){var n=[];for(var s of t.enabled)if(r.cb.includes(s))n.push(s);else{var o=(0,r.yS)(s);o?n.push(o):console.error("Didomi - The language "+s+" is not supported")}if(n.length>0)return n}})},48082:function(e,t,n){var s={"./amazon/amazon.js":[5649,"src_sdk_core_modules_integrations_sdk-integrations_providers_amazon_amazon_js"],"./gcm/gcm.js":[92968,"src_sdk_core_modules_integrations_sdk-integrations_providers_gcm_gcm_js"],"./get-applicable-providers.js":[56067],"./google/google.js":[84635,"src_sdk_core_modules_integrations_sdk-integrations_providers_google_google_js"],"./load-provider-module.js":[73307],"./microsoft/microsoft.js":[26499,"src_sdk_core_modules_integrations_sdk-integrations_providers_microsoft_microsoft_js"],"./salesforce-dmp/salesforce-dmp.js":[51227,"src_sdk_core_modules_integrations_sdk-integrations_providers_salesforce-dmp_salesforce-dmp_js"],"./wordpress/wordpress.js":[3663,"src_sdk_core_modules_integrations_sdk-integrations_providers_wordpress_wordpress_js"]};function r(e){if(!n.o(s,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=s[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(r)})}r.keys=function(){return Object.keys(s)},r.id=48082,e.exports=r},49049:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var s=n(34576),r=n(97531),i=(0,s.EW)(()=>{var e;return(null==(e=r.E.value)?void 0:e.filter(e=>{var t,n;return!!e.namespaces&&(Object.keys(e.namespaces).includes("google")&&!(null==e||null==(t=e.namespaces)||null==(n=t.google)||!n.current))}))||[]})},50010:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var s=n(58168),r=n(34576),i=n(34956),o=(0,r.EW)(()=>{var e,t,n,r;return null!=(e=i.h.value)&&e.length?null==(t=i.h.value)||null==(n=t.map(e=>({[e.id]:e.didomiId})))||null==(r=n.filter(Boolean))?void 0:r.reduce((e,t)=>(0,s.A)({},e,t),{}):{}})},50378:function(e,t,n){"use strict";n.d(t,{F8:function(){return v},r1:function(){return h},Go:function(){return l},bD:function(){return c},zw:function(){return u},or:function(){return d},Jt:function(){return o},gi:function(){return I},Im:function(){return p},Et:function(){return m},Qd:function(){return a},Kg:function(){return b},Up:function(){return g},hZ:function(){return i},zu:function(){return f}});var s=Object.prototype.hasOwnProperty;function r(e,t){var n,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&r(e[i],t[i]););return-1===i}if(!n||"object"==typeof e){for(n in i=0,e){if(s.call(e,n)&&++i&&!s.call(t,n))return!1;if(!(n in t)||!r(e[n],t[n]))return!1}return Object.keys(t).length===i}}return e!=e&&t!=t}var i=(e,t,n)=>function(e,t,n){t.split&&(t=t.split("."));for(var s,r,i=0,o=t.length,a=e;ifunction(e,t,n,s,r){for(t=t.split?t.split("."):t,s=0;s"object"==typeof e&&null!==e&&e.constructor===Object;function u(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(n in e&&a(e[n])&&a(t[n])?e[n]=u(e[n],t[n]):e[n]=t[n]);return e}function l(e){return JSON.parse(JSON.stringify("object"==typeof e?e:{}))}function d(e,t){return u(l(e),t)}var c=(e,t)=>r(e,t),p=e=>e&&e.constructor===Object&&0===Object.keys(e).length,v=e=>Object.values(e).every(e=>!e),h=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var n=[...e].sort(),s=[...t].sort(),r=0;r"function"==typeof Object.values?Object.values(e):Object.keys(e).map(t=>e[t]),g=(e,t)=>t.reduce((t,n)=>(Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]),t),{}),m=e=>"number"==typeof e?!isNaN(e):e instanceof Number&&!isNaN(e.valueOf()),b=e=>"string"==typeof e||e instanceof String,I=e=>Array.isArray(e)?e:[]},50513:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});var s=n(35968),r=n(22639),i=e=>{var t,n;if(!e||"category"===e.type)return e;var i=(0,s.z)(e.purposeId);return i?{id:"cat-"+i.id,type:"category",name:i.name,description:i.description,children:[{type:"purpose",purposeId:i.id}],agree:null==(t=r.v.value.content)?void 0:t.agree,disagree:null==(n=r.v.value.content)?void 0:n.disagree}:e}},51373:function(e,t,n){"use strict";n.d(t,{V:function(){return r},z:function(){return s}});var s=e=>Array.isArray(e)&&e.length>0?e.join(",")+",":"",r=e=>"string"==typeof e&&e.length>0?e.split(",").map(e=>e.trim()).filter(e=>e.length>0):[]},52140:function(e,t,n){"use strict";n.d(t,{J_:function(){return b},MM:function(){return g},NT:function(){return f},Rf:function(){return v},_k:function(){return h},yN:function(){return m}});var s=n(87127),r=n(38311),i=n(90013),o={path:"/",expiry:365},a={cookies:!0,localStorage:!0},u={organizationUserId:"o",organizationUserIdAuthAlgorithm:"a",organizationUserIdAuthDigest:"d",organizationUserIdAuthSalt:"s",organizationUserIdAuthSid:"si",organizationUserIdExp:null,organizationUserIdIv:"i"},l=Object.keys(u).filter(e=>!!u[e]).reduce((e,t)=>(e[u[t]]=t,e),{}),d={"hash-md5":1,"hash-sha1":2,"hash-sha256":3,"hmac-sha1":4,"hmac-sha256":5,"aes-256-cbc":6},c=Object.keys(d).reduce((e,t)=>(e[d[t]]=t,e),{}),p=["hash-md5","hash-sha1","hash-sha256","hmac-sha1","hmac-sha256"];function v(e,t){var n,i;return void 0===t&&(t=a),t.cookies&&(n=(0,s.Ri)(e)),t.localStorage&&(i=(0,r._S)(e)),n||i}function h(e,t,n,o){var u,l,d,c;return void 0===n&&(n=a),n.cookies&&((u=(0,s.Ri)(e))||(u=(0,s.Ri)(o))&&(0,i.B)(!0),l=(0,s.Ri)(t),u&&l)?{didomiToken:u,iabConsentString:l}:n.localStorage&&((d=(0,r._S)(e))||(d=(0,r._S)(o))&&(0,i.B)(!0),c=(0,r._S)(t),d&&c)?{didomiToken:d,iabConsentString:c}:{didomiToken:u||d,iabConsentString:l||c}}function f(e,t,n,i,u,l,d,c){if(void 0===n&&(n=null),void 0===i&&(i=a),void 0===u&&(u=!1),void 0===l&&(l=!1),i.cookies){var p=null;l&&(u?(p="None",c=!0):p="Lax"),(0,s.TV)(e,t,void 0===d?o.expiry:d,n,p,c,o.path)}i.localStorage&&(0,r.AP)(e,t)}function g(e,t,n,i,o){void 0===t&&(t=null),(0,s.Yj)(e,t,n,i,o),(0,r.bJ)(e)}function m(e){var t={},n=e.organizationUserIdAuthAlgorithm;return!n||function(e){return-1!==p.indexOf(e)}(n)?t.organizationUserId=e.organizationUserId:t=e,Object.keys(t).reduce((e,n)=>(u[n]&&t[n]&&(e[u[n]]="organizationUserIdAuthAlgorithm"===n&&d[t[n]]||t[n]),e),{})}function b(e){return Object.keys(e).reduce((t,n)=>(l[n]&&e[n]&&(t[l[n]]="a"===n&&c[e[n]]||e[n]),t),{})}},52477:function(e,t,n){"use strict";n.d(t,{u:function(){return r},v:function(){return i}});var s=new RegExp("([0-9]{4})(-([0-9]{2})(-([0-9]{2})(T([0-9]{2}):([0-9]{2})(:([0-9]{2})(\\.([0-9]+))?)?(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?"),r=e=>{if("string"!=typeof e)return null;var t=e.match(s);if(null===t)return null;var n=0,r=new Date(parseInt(t[1],10),0,1);t[3]&&r.setMonth(parseInt(t[3],10)-1),t[5]&&r.setDate(parseInt(t[5],10)),t[7]&&r.setHours(parseInt(t[7],10)),t[8]&&r.setMinutes(parseInt(t[8],10)),t[10]&&r.setSeconds(parseInt(t[10],10)),t[12]&&r.setMilliseconds(1e3*parseFloat("0."+t[12])),t[14]&&(n=60*parseInt(t[16],10)+parseInt(t[17],10),n*="-"===t[15]?1:-1),n-=r.getTimezoneOffset();var i=r.getTime()+60*n*1e3;return new Date(i)},i=function(e,t){void 0===t&&(t=13);var n=r(e);if(!n)return!0;var s=(new Date).getTime()-n.getTime();return s>0&&s>=26298e5*t}},54971:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var s=n(55217);class r{constructor(){this.vendorsCalled=[],this.isContainerLoaded=!1,this.containerLoading=new Promise(e=>{(0,s.Tv)(t=>{window._oEa&&window.EA_collector&&window.EA_epmEnd&&(window._oEa.cookieset("didomi_eulerian",1,1),this.isContainerLoaded=!0,e(),t())},100,3e4)})}send(e){var t=window.EA_epmGet().filter(e=>!e.noconsent).map(t=>(-1!==(null==e?void 0:e.didomiVendorsConsent.indexOf(t.name+","))&&-1===this.vendorsCalled.indexOf(t.name)?(t.allowed=!0,t.denied=!1,this.vendorsCalled.push(t.name)):(t.allowed=!1,t.denied=!0),t));t.filter(e=>e.allowed).length>0&&(window.EA_epmSet(t),window.EA_epmEnd())}update(e){var{type:t,hasMadeAnyChoice:n,customVariables:s}=e;(n||"didomi-ready"!==t)&&(this.isContainerLoaded?this.send(s):this.containerLoading.then(()=>{this.send(s)}))}}},55217:function(e,t,n){"use strict";function s(e){return"string"!=typeof e||0===e.indexOf("javascript:")||/^https?:\/\//i.test(e)||(e="http://"+e),e}function r(e){return e.replace(/^https?:\/\//,"")}function i(){return(new Date).toISOString()}function o(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))}function a(){return"d4ee574ce72cb26fbe235eac540be8dbf938e9c2"}function u(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}function l(e,t,n){if(!e||n{s+=t,e(()=>clearInterval(r)),s>=n&&clearInterval(r)},t);return!0}function d(e,t){void 0===t&&(t="");var n={},s=document.createElement("a");s.href=e;for(var r=s.search.substring(1).split("&"),i=0;ie.split("=")).reduce((e,t)=>{var[n,s]=t;return e[n]=s,e},{})[e]}n.d(t,{Bf:function(){return s},FY:function(){return c},HF:function(){return a},JT:function(){return o},Tv:function(){return l},b5:function(){return r},bs:function(){return i},un:function(){return u},vA:function(){return d}})},56067:function(e,t,n){"use strict";n.r(t),n.d(t,{getApplicableProviders:function(){return r}});var s=new Set(["google","amazon","gcm","microsoft","salesforce-dmp","wordpress"]),r=e=>{var t=new Set;return null!=e&&e.vendors?(Object.keys(e.vendors).forEach(n=>{var r;!0===(null==(r=e.vendors[n])?void 0:r.enable)&&(s.has(n)?t.add(n):console.error('Didomi SDK - The integration "'+n+'" is not supported. Possible values: '+[...s].join(", ")))}),t):t}},56738:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var s=(e,t)=>0!==e.length&&0!==t.length&&e.every(e=>-1!==t.indexOf(e))},57483:function(e,t,n){"use strict";n.d(t,{lB:function(){return v},dZ:function(){return f},M9:function(){return h}});var s=n(34576),r=n(26104),i=n(4609),o=n(52140),a=n(72985),u=n(418),l=n(20259),d=n(18557),c=n(11843),p=(0,s.EW)(()=>{var e,t,n=null==(e=c.r.value)?void 0:e.name;if(null!=(t=d.O.value)&&t.isDidomiConsentStringEncodingEnabled){if(n&&"gdpr"!==n&&"ccpa"!==n){var s,r,i=null==(s=c.r.value)||null==(r=s.cookies)?void 0:r.didomiTokenCookieName;return"string"==typeof i&&i.length>0?i:"didomi_token_"+n}var o,a,u=null==(o=l.bK.value)||null==(a=o.cookies)?void 0:a.didomiTokenCookieName;return"string"==typeof u&&u.length>0?u:"didomi_token"}}),v=(0,s.vP)({didomiToken:null,iabConsentString:null});(0,s.QZ)(()=>{var e;l.bK.value&&(v.value=(0,o._k)(a.x.value,r.O.value,null==(e=i.G.value)?void 0:e.sources,p.value))});var h=e=>{var t,n,s,l,d,c,p,h,{didomiToken:f,iabConsentString:g}=e;f&&(0,o.NT)(a.x.value,f,null==(t=i.G.value)?void 0:t.local.customDomain,null==(n=i.G.value)?void 0:n.sources,!1,null==(s=i.G.value)?void 0:s.sameSiteRequired,u.t.value.durationInDays,null==(l=i.G.value)?void 0:l.secure);g&&(0,o.NT)(r.O.value,g,null==(d=i.G.value)?void 0:d.local.customDomain,null==(c=i.G.value)?void 0:c.sources,!1,null==(p=i.G.value)?void 0:p.sameSiteRequired,u.t.value.durationInDays,null==(h=i.G.value)?void 0:h.secure);v.value={didomiToken:f||v.peek().didomiToken,iabConsentString:g||v.peek().iabConsentString}},f=()=>{var e;(0,o.MM)(r.O.value,null==(e=i.G.value)?void 0:e.local.customDomain),v.value={didomiToken:v.peek().didomiToken,iabConsentString:null}}},58168:function(e,t,n){"use strict";function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var e,t;return!1!==(null==(e=r.v.value)||null==(t=e.vendorsLayer)?void 0:t.enabled)})},58623:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var s=n(58975),r=n(20259),i=n(11843),o=(0,n(34576).EW)(()=>{var e,t,n,o,a=void 0!==navigator.globalPrivacyControl,u="mixed"===(null==(e=i.r.value)||null==(t=e.group)?void 0:t.name)&&a,l=u&&!0===navigator.globalPrivacyControl;return{isEnabled:u,isSupportedByBrowser:a,isUserOptedOut:l,defaultUserStatus:{optin:l?s.k.DISABLED:s.k.ENABLED,optout:l?s.k.DISABLED:s.k.ENABLED,essential:s.k.ENABLED},shouldShowNotice:u&&!1!==(null==(n=r.bK.value)||null==(o=n.notice)?void 0:o.showWhenGPCIsEnabled)}})},58975:function(e,t,n){"use strict";n.d(t,{k:function(){return u},B:function(){return l}});var s=n(58623),r=n(34576),i=n(11843),o=n(20259),a=(0,r.EW)(()=>{var e,t;return"2.0.0"===(null==(e=o.bK.value)||null==(t=e.ui)?void 0:t.version)}),u={ENABLED:!0,DISABLED:!1,UNDEFINED:void 0},l=(0,r.EW)(()=>{var e,t,n="mixed"===(null==(e=i.r.value)||null==(t=e.group)?void 0:t.name),r=!a.value,o=s.x.value.isEnabled?s.x.value.defaultUserStatus:{optin:u.DISABLED,optout:u.ENABLED,essential:u.ENABLED};return n?{optin:{default:o.optin,initial:{purposes:{value:o.optin,includeOnlySPI:r},operators:{value:u.UNDEFINED}},collect:{purposes:!0,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!1}}}},optout:{default:o.optout,initial:{purposes:{value:o.optout},operators:{value:o.optout,includeAllProcessingRules:!0}},collect:{purposes:!0,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!0,as:["optin","optout"]}}}},essential:{default:o.essential,initial:{purposes:{value:u.ENABLED},operators:{value:u.ENABLED}},collect:{purposes:!1,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!1}}}}}:{optin:{default:o.optin,initial:{purposes:{value:u.UNDEFINED},operators:{values:u.UNDEFINED}},collect:{purposes:!0,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!0}}}},optout:{default:o.optout,initial:{purposes:{value:u.UNDEFINED},operators:{value:u.UNDEFINED}},collect:{purposes:!0,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!0}}}},essential:{default:o.essential,initial:{purposes:{value:u.ENABLED},operators:{value:u.ENABLED}},collect:{purposes:!1,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!1}}}}}})},60351:function(e,t,n){"use strict";n.d(t,{o1:function(){return M},fh:function(){return G},J3:function(){return W}});var s={};n.r(s),n.d(s,{actions:function(){return I},initialState:function(){return b}});var r={};n.r(r),n.d(r,{actions:function(){return S},initialState:function(){return y}});var i={};n.r(i),n.d(i,{actions:function(){return w},initialState:function(){return C}});var o={};n.r(o),n.d(o,{actions:function(){return _},initialState:function(){return A}});var a={};n.r(a),n.d(a,{actions:function(){return E},initialState:function(){return P}});var u={};n.r(u),n.d(u,{actions:function(){return k},initialState:function(){return O}});var l={};n.r(l),n.d(l,{actions:function(){return T},initialState:function(){return L}});var d={};n.r(d),n.d(d,{actions:function(){return U},initialState:function(){return D}});var c={};n.r(c),n.d(c,{actions:function(){return B},initialState:function(){return R}});var p={};n.r(p),n.d(p,{actions:function(){return N},initialState:function(){return V}});var v=n(96700),h=n.n(v),f=n(67092),g=(n(76447),n(27565),n(50378)),m=n(58168),b={sync:{enabled:!1,delayNotice:!0,timeout:3e3,frequency:86400}},I=()=>({setSyncConfig:(e,t)=>(0,m.A)({},e,{sync:(0,g.zw)(e.sync,t)})}),y={consentNotice:{show:!1,showOnUILoad:!1}},S=()=>({showConsentNotice:e=>({consentNotice:(0,m.A)({},e.consentNotice,{show:!0})}),showConsentNoticeOnLoad:e=>({consentNotice:(0,m.A)({},e.consentNotice,{showOnUILoad:!0})}),hideConsentNotice:e=>({consentNotice:(0,m.A)({},e.consentNotice,{show:!1,showOnUILoad:!1})}),setConsentNoticeConfig:(e,t)=>({consentNotice:(0,g.or)(e.consentNotice,t)})}),C={consentPopup:{enable:!0,open:!1,defaultChoice:void 0,enableAllButtons:!0,showWhenConsentIsMissing:!1,canCloseWhenConsentIsMissing:!0,view:"preferences",preferencesView:"purposes",information:{enable:!1,content:{text:{}}},denyAppliesToLI:!0,controlType:void 0,combineLIAndConsent:!1,content:{instructions:void 0}}},w=()=>({hideConsentPopup:e=>({consentPopup:(0,m.A)({},e.consentPopup,{open:!1})}),showConsentPopup:e=>({consentPopup:(0,m.A)({},e.consentPopup,{open:!0})}),switchViewConsentPopup:(e,t)=>({consentPopup:(0,m.A)({},e.consentPopup,{view:t})}),switchPreferencesViewConsentPopup:(e,t)=>({consentPopup:(0,m.A)({},e.consentPopup,{preferencesView:t})}),setConsentPopupConfig:(e,t)=>({consentPopup:(0,g.or)(e.consentPopup,t)})}),A={website:{ignoreCountry:!1,purposes:[],disabledPurposes:[],vendors:[],customSDK:null,regulations:{ccpa:{enabled:!1},gdpr:{enabled:!0,additionalCountries:[]}},google:{additionalConsent:{positive:null,negative:null},fullATP:!1},consentString:void 0,vendorsIdToNumMap:void 0,purposesNumToIdMap:void 0,purposesIdToNumMap:void 0}},_=()=>({setWebsiteConfig:(e,t)=>({website:(0,g.or)(e.website,t)})}),P={iab:{decodedAdditionalConsent:void 0}},E=()=>({setConsentByVendor:(e,t)=>({consentByVendor:t})}),O={remoteConsents:{},pendingConsents:{},isUserAuthenticated:!1,callbackURL:null,authProtocol:null},k=()=>({loadRemoteConsents:(e,t)=>(0,m.A)({},e,{remoteConsents:(0,g.or)(e.remoteConsents,t)}),setUserAuthenticated:(e,t)=>(0,m.A)({},e,{isUserAuthenticated:t}),setCallbackURL:(e,t)=>(0,m.A)({},e,{callbackURL:t}),setAuthProtocol:(e,t)=>(0,m.A)({},e,{authProtocol:t}),setRemoteConsents:(e,t)=>(0,m.A)({},e,{remoteConsents:(0,m.A)({},e.remoteConsents,{consents:(0,g.or)(e.remoteConsents.consents,t)})}),setPendingConsent:(e,t)=>{var{purposeId:n,preferenceId:s,channelId:r,data:i}=t,o=null,a=null;n?(o=n,a="consents.purposes."+n,s&&(o+="_"+s,a+=".preferences."+s),r&&(o+="_"+r,a+=".channels."+r)):r&&(o=r,a="consents.channels."+r);var{metadata:u={},enabled:l}=(0,g.Jt)(e.remoteConsents,""+a,{}),d={enabled:l,metadata:u};i.metadata=void 0===i.metadata?{}:i.metadata;var c={purposeId:n,preferenceId:s,channelId:r,data:(0,g.or)((0,g.or)(d,(0,g.Jt)(e.pendingConsents,o+".data",{})),i)};return JSON.stringify(c.data)!==JSON.stringify(d)?(0,m.A)({},e,{pendingConsents:(0,m.A)({},e.pendingConsents,{[o]:c})}):e.pendingConsents[o]?(0,m.A)({},e,{pendingConsents:(0,m.A)({},Object.keys(e.pendingConsents).filter(e=>e!==o).reduce((t,n)=>(t[n]=e.pendingConsents[n],t),{}))}):e},resetPendingConsents:e=>(0,m.A)({},e,{pendingConsents:{}})}),L={ui:{loading:!1,loaded:!1,rendered:!1,module:null}},T=()=>({loadingUI:e=>({ui:(0,m.A)({},e.ui,{loading:!0})}),loadedUI:e=>({ui:(0,m.A)({},e.ui,{loaded:!0,loading:!1})}),renderedUI:e=>({ui:(0,m.A)({},e.ui,{rendered:!0})}),resetUI:e=>({ui:(0,m.A)({},e.ui,{rendered:!1,loading:!1,loaded:!1})})}),D={components:{helpersEnabled:!1,componentsEnabled:!1,version:1}},U=()=>({setComponentsConfig:(e,t)=>({components:(0,g.or)(e.components,t)})}),R={mixedRegulationPreferences:{categories:[],categoriesState:{},purposesState:{},spiPurposesState:{},allSPIUseState:!1,vendors:[],allVendorsState:!0,vendorsState:{}}},B=()=>({setPurposeState:(e,t,n)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{purposesState:(0,m.A)({},e.mixedRegulationPreferences.purposesState,{[t]:n})})}),setSPIPurposesState:(e,t,n)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{spiPurposesState:(0,m.A)({},e.mixedRegulationPreferences.spiPurposesState,{[t]:n})})}),setCategoryState:(e,t,n)=>{var s;return{mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{categoriesState:(0,m.A)({},null==(s=e.mixedRegulationPreferences)?void 0:s.categoriesState,{[t]:n})})}},setVendorState:(e,t,n)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{vendorsState:(0,m.A)({},e.mixedRegulationPreferences.vendorsState,{[t]:n})})}),setAllVendorsState:(e,t)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{allVendorsState:t})}),setAllSPIUseState:(e,t)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{allSPIUseState:t})}),setVendors:(e,t)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{vendors:t})}),setCategories:(e,t)=>({mixedRegulationPreferences:(0,m.A)({},e.mixedRegulationPreferences,{categories:t})})}),V={signature:{dcsUserId:null,value:null}},N=()=>({setSignature:(e,t)=>({signature:{dcsUserId:t.dcsUserId,value:t.signature}}),dropSignature:e=>({signature:(0,m.A)({},e.signature,{value:null})})}),x=[s,r,i,o,a,u,l,d,c,p],M={};for(var F of x)M[Object.keys(F.initialState)[0]]=F.actions;function z(e){var t={};for(var n of x)(0,g.zw)(t,(0,f.XL)(n.actions,e));return t}var j=function(e){var t=e||function(){var e={};for(var t of x)(0,g.zw)(e,t.initialState);return e}(),n=h()(t,[]);return{store:n,actions:z(n)}}(),W=j.store,G=j.actions},61304:function(e,t,n){"use strict";n.d(t,{s:function(){return u}});var s=n(34576),r=n(20152),i=n(78939),o=n(86923),a=n(11843),u=(0,s.EW)(()=>{var e,t,n,s,u;return!(!0!==o.X.value||"gdpr"!==(null==(e=a.r.value)?void 0:e.name)||!(!0===(null==(t=i.b.value)?void 0:t.removeDeletedIABVendorsForAllClients)||null!=(n=i.b.value)&&null!=(s=n.removeDeletedIABVendorsForAPIKeys)&&s.includes(null==(u=r.U.value)?void 0:u.apiKey)))})},62026:function(e,t,n){"use strict";n.d(t,{o4:function(){return z}});var s,r="3.7.5",i=r,o="function"==typeof atob,a="function"==typeof btoa,u="function"==typeof Buffer,l="function"==typeof TextDecoder?new TextDecoder:void 0,d="function"==typeof TextEncoder?new TextEncoder:void 0,c=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),p=(s={},c.forEach((e,t)=>s[e]=t),s),v=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,h=String.fromCharCode.bind(String),f="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),g=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),m=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),b=e=>{for(var t,n,s,r,i="",o=e.length%3,a=0;a255||(s=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");i+=c[(t=n<<16|s<<8|r)>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}return o?i.slice(0,o-3)+"===".substring(o):i},I=a?e=>btoa(e):u?e=>Buffer.from(e,"binary").toString("base64"):b,y=u?e=>Buffer.from(e).toString("base64"):e=>{for(var t=[],n=0,s=e.length;n{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?h(192|t>>>6)+h(128|63&t):h(224|t>>>12&15)+h(128|t>>>6&63)+h(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return h(240|t>>>18&7)+h(128|t>>>12&63)+h(128|t>>>6&63)+h(128|63&t)},w=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,A=e=>e.replace(w,C),_=u?e=>Buffer.from(e,"utf8").toString("base64"):d?e=>y(d.encode(e)):e=>I(A(e)),P=function(e,t){return void 0===t&&(t=!1),t?g(_(e)):_(e)},E=e=>P(e,!0),O=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,k=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return h((t>>>10)+55296)+h(56320+(1023&t));case 3:return h((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return h((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},L=e=>e.replace(O,k),T=e=>{if(e=e.replace(/\s+/g,""),!v.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,s,r="",i=0;i>16&255):64===s?h(t>>16&255,t>>8&255):h(t>>16&255,t>>8&255,255&t);return r},D=o?e=>atob(m(e)):u?e=>Buffer.from(e,"base64").toString("binary"):T,U=u?e=>f(Buffer.from(e,"base64")):e=>f(D(e).split("").map(e=>e.charCodeAt(0))),R=e=>U(V(e)),B=u?e=>Buffer.from(e,"base64").toString("utf8"):l?e=>l.decode(U(e)):e=>L(D(e)),V=e=>m(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),N=e=>B(V(e)),x=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),M=function(){var e=(e,t)=>Object.defineProperty(String.prototype,e,x(t));e("fromBase64",function(){return N(this)}),e("toBase64",function(e){return P(this,e)}),e("toBase64URI",function(){return P(this,!0)}),e("toBase64URL",function(){return P(this,!0)}),e("toUint8Array",function(){return R(this)})},F=function(){var e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,x(t));e("toBase64",function(e){return S(this,e)}),e("toBase64URI",function(){return S(this,!0)}),e("toBase64URL",function(){return S(this,!0)})},z={version:r,VERSION:i,atob:D,atobPolyfill:T,btoa:I,btoaPolyfill:b,fromBase64:N,toBase64:P,encode:P,encodeURI:E,encodeURL:E,utob:A,btou:L,decode:N,isValid:e=>{if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:S,toUint8Array:R,extendString:M,extendUint8Array:F,extendBuiltins:()=>{M(),F()}}},62846:function(e,t,n){"use strict";n.d(t,{a:function(){return r},k:function(){return s}});var s=!1,r=()=>{s=!0}},63364:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var s=n(34576),r=n(29690),i=(0,s.EW)(()=>{var e;return(null==(e=r.i.value)?void 0:e.map(e=>null==e?void 0:e.id))||[]})},66559:function(e,t,n){"use strict";n.d(t,{o:function(){return I}});var s=n(58168),r=n(34576),i=n(72198),o=n(81062),a=n(70008),u=n(99124),l=(e,t,n)=>{if(!n||0===n.length)return[];var s=((e,t)=>e.flexiblePurposeIds.filter(n=>e[t].includes(n)))(e,"req-consent"===t?"legIntPurposeIds":"purposeIds");return s.filter(s=>{var r=(0,u.N)(s,e.id,"disallow",n),i=(0,u.N)(s,e.id,t,n);return!r&&i})},d=n(97071),c=n(50378),p=(0,r.EW)(()=>{var{vendors:e}=o.A.value||{};if(!e||!Array.isArray(e))return[];var t,n,r=i.t.map(e=>(e=>{if("iab"===e.namespace){var t=(0,c.Et)(e.id)?e.id:parseInt(e.id,10);if(t)return t}else if(e.namespaces){if((0,c.Et)(e.namespaces.iab))return e.namespaces.iab;if((0,c.Et)(e.namespaces.iab2))return e.namespaces.iab2}return null})(e)),p=e.filter(e=>!r.includes(e.id));return t=p,null!=(n=a.Z.value)&&n.length?t.reduce((e,t)=>{var r=(0,s.A)({},t,{purposeIds:t.purposeIds.filter(e=>!(0,u.N)(e,t.id,"req-li",n,!1)),legIntPurposeIds:t.legIntPurposeIds.filter(e=>!(0,u.N)(e,t.id,"req-consent",n,!1)),specialFeatureIds:t.specialFeatureIds.filter(e=>!(0,u.N)(e,t.id,"disallow",n,!0))});return r.purposeIds=(0,d.$)([...r.purposeIds,...l(t,"req-consent",n)]),r.legIntPurposeIds=(0,d.$)([...r.legIntPurposeIds,...l(t,"req-li",n)]),(e=>0===e.purposeIds.length&&0===e.legIntPurposeIds.length&&0===e.specialPurposeIds.length)(r)||e.push(r),e},[]):t}),v=n(9757),h={id:"google",name:"Google Advertising Products",policyUrl:"https://policies.google.com/privacy",namespace:"didomi"},f=n(55217),g=n(92920),m=n(20152),b=(e,t)=>{e&&t&&(t.purposeIds=e.purposeIds,t.legIntPurposeIds=e.legIntPurposeIds)},I=(0,r.EW)(()=>{var e,t,n,r=(null==(e=m.U.value)||null==(t=e.vendors)?void 0:t.overrideVendors)||[],o=Object.keys(r),a=[...i.t,...null==(n=p.value)?void 0:n.map(e=>(e=>{var t=[];return t.push(...(e.purposeIds||[]).map(e=>(0,v.KX)(e))),t.push(...(e.specialFeatureIds||[]).map(e=>(0,v.PL)(e))),(0,s.A)({},e,{namespace:"iab",purposeIds:t,legIntPurposeIds:(e.legIntPurposeIds||[]).map(e=>(0,v.KX)(e)),flexiblePurposeIds:(e.flexiblePurposeIds||[]).map(e=>(0,v.KX)(e))},e.id===v.le.google&&(0,s.A)({},h,{namespaces:{iab2:v.le.google}}))})(e)),...g.$.value],u={},l=a.find(e=>"google"===e.id);for(var d of a){if(d.policyUrl&&(d.policyUrl=(0,f.Bf)(d.policyUrl)),"custom"===d.namespace){var c,I;(0,v.cu)(d)&&b(l,d);var y,S=(null==d||null==(c=d.namespaces)?void 0:c.didomi)||(null==d||null==(I=d.namespaces)?void 0:I.iab2);if(!!u[S])u[S]=(0,s.A)({},u[S],{namespaces:(0,s.A)({},null==(y=u[S])?void 0:y.namespaces,null==d?void 0:d.namespaces)});else u[d.id]=d}else"didomi"===d.namespace?((0,v.cu)(d)&&b(l,d),u[d.id]=d):u[d.id]=d;o.includes(d.id)&&(u[d.id]=(0,s.A)({},u[d.id],r[d.id]))}return u})},67092:function(e,t){"use strict";function n(e,t){return function(){for(var n=[],s=0;s(e[t]=!0,e),{});t.forEach(e=>{o[e]=!1});var a=n.reduce((e,t)=>(e[t]=!0,e),{});return s.forEach(e=>{a[e]=!1}),{purposesById:o,purposes:{enabled:i,disabled:t},vendorsById:a,vendors:{enabled:n,disabled:s}}},v=(0,s.EW)(()=>{var e,t,n,s,v,h,f,g,m=r.II.value,b=(null==m||null==(e=m.purposes)?void 0:e.enabled)||[],I=(null==m||null==(t=m.purposes)?void 0:t.disabled)||[],y=(null==m||null==(n=m.vendors)?void 0:n.enabled)||[],S=(null==m||null==(s=m.vendors)?void 0:s.disabled)||[],C=(null==m||null==(v=m.purposes_li)?void 0:v.enabled)||[],w=(null==m||null==(h=m.purposes_li)?void 0:h.disabled)||[],A=(null==m||null==(f=m.vendors_li)?void 0:f.enabled)||[],_=(null==m||null==(g=m.vendors_li)?void 0:g.disabled)||[],P=b.length>0||I.length>0||y.length>0||S.length>0||C.length>0||w.length>0||A.length>0||_.length>0,E=[...new Set([...u.H$.value.operatorIdsWithAtLeastOneOptinPurpose,...u.H$.value.operatorIdsWithAtLeastOneOptoutPurpose])],O=l.B.value.optin.initial.purposes.includeOnlySPI?o.t.value.spiPurposeIds:o.t.value.purposeIdsBasedOnConsent;return P||(b=l.B.value.optin.initial.purposes.value===l.k.ENABLED?O:[],I=l.B.value.optin.initial.purposes.value===l.k.DISABLED?O:[],y=l.B.value.optin.initial.operators.value===l.k.ENABLED?l.B.value.optin.initial.operators.includeAllProcessingRules?E:u.H$.value.operatorIdsWithAtLeastOneOptinPurpose:c.q.value.optInEssentialPurposesOperatorIds,S=l.B.value.optin.initial.operators.value===l.k.DISABLED?l.B.value.optin.initial.operators.includeAllProcessingRules?E:u.H$.value.operatorIdsWithAtLeastOneOptinPurpose:[],C=l.B.value.optout.initial.purposes.value===l.k.ENABLED?o.t.value.purposeIdsBasedOnLI:[],w=l.B.value.optout.initial.purposes.value===l.k.DISABLED?o.t.value.purposeIdsBasedOnLI:[],A=l.B.value.optout.initial.operators.value===l.k.ENABLED?l.B.value.optout.initial.operators.includeAllProcessingRules?E:u.H$.value.operatorIdsWithAtLeastOneOptoutPurpose:c.q.value.optOutEssentialPurposesOperatorIds,_=l.B.value.optout.initial.operators.value===l.k.DISABLED?l.B.value.optout.initial.operators.includeAllProcessingRules?E:u.H$.value.operatorIdsWithAtLeastOneOptoutPurpose:[]),a.x.value.isUserOptedOut&&(b=[],I=o.t.value.purposeIdsBasedOnConsent,C=[],w=o.t.value.purposeIdsBasedOnLI,y=[],S=u.H$.value.operatorIdsWithAtLeastOneOptinPurpose,A=[],_=u.H$.value.operatorIdsWithAtLeastOneOptoutPurpose),d.p.value&&(b=o.t.value.purposeIdsBasedOnConsent,I=[],C=o.t.value.purposeIdsBasedOnLI,w=[],y=u.H$.value.operatorIdsWithAtLeastOneOptinPurpose,S=[],A=u.H$.value.operatorIdsWithAtLeastOneOptoutPurpose,_=[]),{byLegalBasis:{consent:p(b,I,y,S,i.T.value),li:p(C,w,A,_,i.T.value)},hasMadeAnyChoice:P}})},68200:function(e,t,n){"use strict";n.d(t,{II:function(){return i},vY:function(){return o},wJ:function(){return a}});var s=n(34576),r=n(3330),i=(0,s.vP)((0,r.x)()),o=e=>{i.value=e},a=()=>{var e;null!=(e=i.value)&&e.sync&&delete i.value.sync}},68307:function(e,t,n){"use strict";n.d(t,{Ic:function(){return h},KU:function(){return f},sF:function(){return g},mW:function(){return p},ew:function(){return v},on:function(){return b},Oo:function(){return y},pQ:function(){return I},kj:function(){return c}});var s=n(91083),r=n(24408),i=n(23369),o=n(74921),a=["cbd8eb33-3b64-4820-b682-a4ee95350e35","d8b5cd5c-d1e5-4195-b9b2-02ab9bb451fa","b7a34065-46df-44a9-be3b-1f92ad51caa8","13530e32-2047-45b8-96c9-eeff22c3a3be","ad7a65df-088b-4b23-86be-3bd683070a38","aac9f485-1439-4164-8cd7-e42a1e204304","fb809c51-e9cd-4e35-a92d-e44bb858841e","309930c2-c7f2-4e68-817b-04568d81e6ab","7893a59d-1e25-44f3-97b7-0772c2ab6a25","839e15c5-b3dc-4adf-9a82-6d97c8ca004d"],u=["consent.changed","consent.changedwithsignature","internal.consent.changed","cookies.enable","notice.hidden"],l=(0,s.EventEmitter)().setMaxListeners(50),d=new Map,c=e=>{l.setMaxListeners(e)},p=()=>l.maxListeners,v=e=>l.listenerCount(e),h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{(e=>!e||e>=400)(e)&&h("api.error",{id:t,reason:"number"==typeof e&&e>=400?"response.error":"request.failure"})},g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{h(e,...n)})},m=(e,t)=>function(n){for(var s=arguments.length,i=new Array(s>1?s-1:0),l=1;lt(n,...i),!0):t(n,...i)},b=function(e,t,n){var{shouldYield:s=!0,shouldBeSafe:r=!0}=void 0===n?{}:n,o=t;r&&(o=(0,i.B1)(o,e)),s&&(o=m(e,o)),d.set(t,o),l.on(e,o)},I=(e,t)=>{var n=d.get(t)||t;l.removeListener(e,n),d.delete(t)},y=function(e,t,n){var{shouldYield:s=!0,shouldBeSafe:r=!0}=void 0===n?{}:n,o=t;r&&(o=(0,i.B1)(o,e)),s&&(o=m(e,o)),d.set(t,o),l.once(e,o)}},70008:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var s=n(20152),r=n(34576),i=n(50378),o=n(9757),a=["all","list"],u=["allow","disallow","req-consent","req-li"],l=(0,i.zu)(o.H2),d=e=>{if(!e)return!1;var{id:t,purposeId:n,vendors:s,restrictionType:r}=e;return(e=>{var{restrictionId:t,vendorRestrictionType:n,vendorRestrictionRanges:s,restrictionType:r,restrictionPurposeId:i,vendorIds:d}=e,c=l.includes(i),p=c?o.x4[i]:o.LN[i];if("string"!=typeof t||0===t.length)return console.error('Didomi - Invalid restriction ID "'+t+'" provided for publisher restrictions'),!1;if(void 0===p)return console.error('Didomi - Invalid purpose ID or special feature ID "'+i+'" provided for publisher restrictions'),!1;if(c){if("all"!==n)return console.error("Didomi - Only vendor restriction type 'all' is valid for special features"),!1;if("disallow"!==r)return console.error("Didomi - Only restriction type 'disallow' is valid for special features"),!1}else{if(void 0===n||-1===a.indexOf(n))return console.error('Didomi - Invalid vendor restriction type "'+n+'" provided for publisher restrictions'),!1;if("list"===n)if(Array.isArray(d)&&0!==d.length){if(!d.every(e=>"number"==typeof e))return console.error("Didomi - Vendor IDs for publisher restrictions should be numerical values"),!1}else{if(!Array.isArray(s)||0===s.length)return console.error("Didomi - Invalid vendor restriction ranges provided for publisher restrictions"),!1;if(s.map(e=>{var t=Object.keys(e);return"object"==typeof e&&-1!==t.indexOf("start")&&-1!==t.indexOf("end")&&e.start!0===e).length!==s.length)return console.error("Didomi - Invalid vendor restriction ranges provided for publisher restrictions. Each vendor restriction must contain 'start' and 'end' key"),!1}if("string"!=typeof r||-1===u.indexOf(r))return console.error('Didomi - Invalid restriction type "'+r+'" provided for publisher restrictions'),!1;if("cookies"===i&&("req-consent"===r||"req-li"===r))return console.error("Didomi - Only restriction types 'allow' or 'disallow' are valid for the purpose 'cookies'"),!1}return!0})({restrictionId:t,vendorRestrictionType:null==s?void 0:s.type,vendorRestrictionRanges:null==s?void 0:s.ranges,restrictionType:r,restrictionPurposeId:n,vendorIds:null==s?void 0:s.ids})},c=(e,t,n,s,r)=>{if("all"===t)return"allow"===e?[]:r;var i="allow"===e,o=new Set;return n&&(i?r.forEach(e=>{n.includes(e)||o.add(e)}):n.forEach(e=>{o.add(e)})),s&&s.forEach(e=>{var{start:t,end:n}=e;if(i)r.forEach(e=>{(en)&&o.add(e)});else for(var s=t;s<=n;s++)o.add(s)}),[...o]},p=n(81062),v=(0,r.EW)(()=>{var e,t,n,r=null==(e=s.U.value)||null==(t=e.vendors)||null==(n=t.iab)?void 0:n.restrictions;return Array.isArray(r)?r.filter(d).map(e=>{var t,n;return((e,t)=>{var{id:n,purposeId:s,vendors:r,restrictionType:i}=e,o=null==r?void 0:r.type,a=null==r?void 0:r.ranges,u=null==r?void 0:r.ids;return{id:n,purposeId:s,vendors:c(i,o,u,a,t),restrictionType:i,vendorRestrictionType:o}})(e,null==(t=p.A.value)||null==(n=t.vendors)?void 0:n.map(e=>{var{id:t}=e;return t}))}):[]})},70460:function(e,t,n){var s={"./ar-JO/web/":[18145,"ui-web-ar-JO-web"],"./ar/web/":[68849,"ui-web-ar-web"],"./az-AZ/web/":[57265,"ui-web-az-AZ-web"],"./be/web/":[41356,"ui-web-be-web"],"./bg/web/":[14769,"ui-web-bg-web"],"./bn-IN/web/":[31088,"ui-web-bn-IN-web"],"./bs/web/":[23734,"ui-web-bs-web"],"./ca/web/":[87058,"ui-web-ca-web"],"./cs/web/":[75896,"ui-web-cs-web"],"./cy/web/":[84687,"ui-web-cy-web"],"./da/web/":[8033,"ui-web-da-web"],"./de-AT/web/":[18639,"ui-web-de-AT-web"],"./de-CH/web/":[8641,"ui-web-de-CH-web"],"./de/web/":[35669,"ui-web-de-web"],"./el/web/":[71271,"ui-web-el-web"],"./en-CA/web/":[25375,"ui-web-en-CA-web"],"./en-GB/web/":[44159,"ui-web-en-GB-web"],"./en-NZ/web/":[47054,"ui-web-en-NZ-web"],"./en/web/":[32745,"ui-web-en-web"],"./es/web/":[99954,"ui-web-es-web"],"./et/web/":[99135,"ui-web-et-web"],"./eu/web/":[99837,"ui-web-eu-web"],"./fi/web/":[10079,"ui-web-fi-web"],"./fil/web/":[28567,"ui-web-fil-web"],"./fr-BE/web/":[48882,"ui-web-fr-BE-web"],"./fr-CA/web/":[80495,"ui-web-fr-CA-web"],"./fr/web/":[91990,"ui-web-fr-web"],"./gl/web/":[89798,"ui-web-gl-web"],"./he/web/":[65729,"ui-web-he-web"],"./hi-IN/web/":[40041,"ui-web-hi-IN-web"],"./hr/web/":[71448,"ui-web-hr-web"],"./hu/web/":[90065,"ui-web-hu-web"],"./id/web/":[2587,"ui-web-id-web"],"./it/web/":[235,"ui-web-it-web"],"./ja/web/":[11179,"ui-web-ja-web"],"./ka/web/":[98095,"ui-web-ka-web"],"./ko/web/":[66324,"ui-web-ko-web"],"./lt/web/":[64266,"ui-web-lt-web"],"./lv/web/":[84480,"ui-web-lv-web"],"./mk-MK/web/":[96247,"ui-web-mk-MK-web"],"./ms/web/":[12442,"ui-web-ms-web"],"./mt/web/":[84260,"ui-web-mt-web"],"./nl-BE/web/":[89300,"ui-web-nl-BE-web"],"./nl/web/":[59968,"ui-web-nl-web"],"./no/web/":[15021,"ui-web-no-web"],"./pl/web/":[41278,"ui-web-pl-web"],"./pt-BR/web/":[56159,"ui-web-pt-BR-web"],"./pt/web/":[2246,"ui-web-pt-web"],"./ro/web/":[95385,"ui-web-ro-web"],"./ru/web/":[93711,"ui-web-ru-web"],"./sk/web/":[15216,"ui-web-sk-web"],"./sl/web/":[20969,"ui-web-sl-web"],"./sq/web/":[29351,"ui-web-sq-web"],"./sr-Latn/web/":[66009,"ui-web-sr-Latn-web"],"./sr/web/":[61363,"ui-web-sr-web"],"./sv/web/":[25983,"ui-web-sv-web"],"./sw/web/":[8772,"ui-web-sw-web"],"./th/web/":[25462,"ui-web-th-web"],"./tl/web/":[32495,"ui-web-tl-web"],"./tr/web/":[87556,"ui-web-tr-web"],"./uk/web/":[23562,"ui-web-uk-web"],"./vi/web/":[86959,"ui-web-vi-web"],"./zh-CN/web/":[18120,"ui-web-zh-CN-web"],"./zh-TW/web/":[12636,"ui-web-zh-TW-web"]};function r(e){if(!n.o(s,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=s[e],r=t[0];return n.e(t[1]).then(function(){return n(r)})}r.keys=function(){return Object.keys(s)},r.id=70460,e.exports=r},71859:function(e,t,n){"use strict";n.d(t,{H:function(){return u}});var s=n(34576),r=n(47488),i=n(72013),o=n(6024),a=n(39838),u=(0,s.EW)(()=>{var e,t=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage,n=(0,o.cO)(t);return null!=(e=r.h.value)&&e.includes(n)?n:i.e.value});(0,s.QZ)(()=>{var e=document.getElementById("didomi-host");e&&(e.getAttribute("lang")!==u.value&&(e.setAttribute("lang",u.value),e.setAttribute("data-lang-dir",(0,a.i)(u.value))))})},72013:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var s=n(34576),r=n(47488),i=n(6024),o=n(20259),a=(0,s.EW)(()=>{var e,t,n,s=null==(e=o.bK.value)?void 0:e.languages;if(null!=s&&s.default){var a;if(null!=(a=r.h.value)&&a.includes(s.default))return s.default;var u=(0,i.yS)(s.default);if(u)return u;console.error("Didomi - Default language '"+s.default+"' must be in the list of enabled languages")}return null==(t=r.h.value)||!t.length||null!=(n=r.h.value)&&n.includes(i.Nm)?i.Nm:r.h.value[0]})},72177:function(e,t,n){"use strict";n.d(t,{A:function(){return i},R:function(){return o}});var s=n(34576),r={add_payment_info:!0,add_shipping_info:!0,add_to_cart:!0,add_to_wishlist:!0,begin_checkout:!0,conversion:!0,close_convert_lead:!0,close_unconvert_lead:!0,disqualify_lead:!0,earn_virtual_currency:!0,generate_lead:!0,join_group:!0,level_end:!0,level_start:!0,level_up:!0,login:!0,post_score:!0,purchase:!0,qualify_lead:!0,refund:!0,remove_from_cart:!0,search:!0,select_content:!0,select_item:!0,select_promotion:!0,share:!0,sign_up:!0,spend_virtual_currency:!0,tutorial_begin:!0,tutorial_complete:!0,unlock_achievement:!0,view_cart:!0,view_item:!0,view_item_list:!0,view_promotion:!0,working_lead:!0},i=(0,s.vP)(void 0),o=(e,t)=>{try{i.value=((e,t)=>{if(e&&Array.isArray(e)&&e.length){var n=e.filter(e=>e&&e[1]!==t);if(n.some(e=>e&&"gtm.load"===e.event))return console.error("Didomi - Google Consent Mode: gtm.load event is already present in the data layer when setting default values. Ensure GTM and other Google tags are loaded after Didomi is ready for the Google Consent Mode integration to work correctly."),"load";var s=n.filter(e=>e&&(r[e.event]||r[e[1]])).map(e=>e&&(e.event||e[1]));if(s.length>0)return console.error("Didomi - Google Consent Mode: Google Ads or Google Analytics events ("+s.join(", ")+") are already present in the data layer before setting default values. Ensure GTM and other Google tags are loaded after Didomi is ready for the Google Consent Mode integration to work correctly."),"gtag_events"}})(e,t)}catch(e){}}},72198:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var s=n(9757),r=Object.keys(s.gS),i=[{id:"*",name:"Any",purposeIds:["cookies"],legIntPurposeIds:[],didomiId:"*"},{id:"amazon",name:"Amazon",purposeIds:r,legIntPurposeIds:[],policyUrl:"https://aps.amazon.com/aps/privacy-policy/index.html",namespace:"didomi",didomiId:"amazon"},{id:"facebook",name:"Facebook",purposeIds:[s.eL.Cookies,s.eL.CreateAdsProfile,s.eL.SelectPersonalizedAds],legIntPurposeIds:[s.eL.SelectBasicAds,s.eL.MeasureAdPerformance,s.eL.MarketResearch,s.eL.ImproveProducts],policyUrl:"https://www.facebook.com/about/privacy/update",namespace:"didomi",namespaces:{google:{current:!0,id:89}},didomiId:"facebook"},{id:"twitter",name:"Twitter",purposeIds:["cookies"],legIntPurposeIds:[],policyUrl:"https://twitter.com/privacy",namespace:"didomi",didomiId:"twitter"},{id:"whatsapp",name:"Whatsapp",purposeIds:["cookies"],legIntPurposeIds:[],policyUrl:"https://www.whatsapp.com/legal/#privacy-policy",namespace:"didomi",didomiId:"whatsapp"},{id:"google-adsense",name:"Google Adsense",purposeIds:r,legIntPurposeIds:[],policyUrl:"https://policies.google.com/technologies/partner-sites",namespace:"didomi",didomiId:"google-adsense"},{id:"google-adx",name:"Google Adx",purposeIds:r,legIntPurposeIds:[],policyUrl:"https://policies.google.com/technologies/partner-sites",namespace:"didomi",didomiId:"google-adx"},{id:"google-dfp",name:"Google DFP",purposeIds:r,legIntPurposeIds:[],policyUrl:"https://policies.google.com/technologies/partner-sites",namespace:"didomi",didomiId:"google-dfp"},{id:"addthis",name:"AddThis",purposeIds:r,legIntPurposeIds:[],policyUrl:"http://www.addthis.com/privacy",namespace:"didomi",didomiId:"addthis"},{id:"salesforce",name:"Salesforce",purposeIds:r,legIntPurposeIds:[],policyUrl:"https://www.salesforce.com/company/privacy/",namespace:"didomi",didomiId:"salesforce"}]},72527:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var s=n(58168),r=n(19621);class i{constructor(){this.utag=new r.Wrapper("utag")}update(e){var{type:t="didomi-consent-changed",customVariables:n}=e;this.utag.call("link",(0,s.A)({tealium_event:t},n))}}},72714:function(e,t,n){"use strict";n.d(t,{K:function(){return r},z:function(){return s}});var s=(0,n(34576).vP)(""),r=e=>{s.value=e}},72985:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var s=n(18557),r=n(20259),i=n(11843),o=(0,n(34576).EW)(()=>{var e,t,n=null==(e=i.r.value)?void 0:e.name;if(null!=(t=s.O.value)&&t.isDidomiConsentStringEncodingEnabled){var o,a,u=null==(o=r.bK.value)||null==(a=o.cookies)?void 0:a.didomiConsentStringCookieName;return"string"==typeof u&&u.length>0?u:"didomi_dcs"}if(n&&"gdpr"!==n&&"ccpa"!==n){var l,d,c=null==(l=i.r.value)||null==(d=l.cookies)?void 0:d.didomiTokenCookieName;return"string"==typeof c&&c.length>0?c:"didomi_token_"+n}var p,v,h=null==(p=r.bK.value)||null==(v=p.cookies)?void 0:v.didomiTokenCookieName;return"string"==typeof h&&h.length>0?h:"didomi_token"})},73307:function(e,t,n){"use strict";n.r(t),n.d(t,{loadProviderModule:function(){return s}});var s=(e,t)=>n(48082)("./"+e+"/"+e+".js").then(n=>{var s=new n.default(t);return n&&"function"==typeof s.setConsentStatus?s:(console.error("Module for provider "+e+" does not have a setConsentStatus function."),null)}).catch(t=>(console.error("Failed to load integration for provider "+e+":",t),null))},73412:function(e,t,n){"use strict";n.d(t,{m:function(){return p}});var s=n(58168),r=n(34576),i=n(9757),o=n(78691),a=n(35787),u=n(86784),l=n(81062),d=(0,r.EW)(()=>{var e,{specialFeatures:t}=l.A.value||{};return!!t&&Array.isArray(t)&&!(null==(e=u.S.value)||!e.specialFeatures)?null==t?void 0:t.map(e=>{var t,n;return(0,s.A)({},null==(t=u.S.value)||null==(n=t.specialFeatures)?void 0:n.find(t=>t.id===e.id),{id:i.FG[e.id],namespace:"iab",isSpecialFeature:!0})}):[]}),c=[{id:i.eL.CookiesAnalytics},{id:i.eL.CookiesMarketing},{id:i.eL.CookiesSocial}],p=(0,r.EW)(()=>{var e=[...c,...a.T.value||[],...d.value||[],...o.x.value||[]];if(null==e||!e.length)return{};var t={};for(var n of e)if("custom"===n.namespace){var r,u,l=i.RQ[null==n||null==(r=n.namespaces)?void 0:r.iab2];if(!!t[l])t[l]=(0,s.A)({},t[l],{namespaces:(0,s.A)({},null==(u=t[l])?void 0:u.namespaces,null==n?void 0:n.namespaces)});else t[n.id]=n}else t[n.id]=n;return t})},73996:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var s=n(34576),r=n(76406),i=n(77396),o=(0,s.EW)(()=>({optInEssentialPurposesOperatorIds:r.H.value.operators.filter(e=>{var t;return e.processingRules.some(e=>"essential"===e)&&(null==(t=e.purposeIds)?void 0:t.length)>0&&e.purposeIds.every(e=>i.T.value.includes(String(e)))}).map(e=>e.id),optOutEssentialPurposesOperatorIds:r.H.value.operators.filter(e=>{var t;return e.processingRules.some(e=>"essential"===e)&&(null==(t=e.legIntPurposeIds)?void 0:t.length)>0&&e.legIntPurposeIds.every(e=>i.T.value.includes(String(e)))}).map(e=>e.id)}))},74283:function(e,t,n){"use strict";n.d(t,{b:function(){return s}});var s=e=>{var t=e.match(/^(iab|didomi):(\w+)$/);return t?t[2]:e}},74921:function(e,t,n){"use strict";n.d(t,{F:function(){return s}});var s=function(e,t){if(void 0===t&&(t=!1),t){if("undefined"!=typeof window&&"scheduler"in window){if("yield"in window.scheduler)return void window.scheduler.yield().then(e);if("postTask"in window.scheduler)return void window.scheduler.postTask(e,{priority:"user-blocking"})}setTimeout(e,0)}else e()}},75604:function(e,t,n){var s={"./ar-JO/ctv/":[22068,"ui-ctv0"],"./ar/ctv/":[62084,"ui-ctv1"],"./az-AZ/ctv/":[99556,"ui-ctv2"],"./bg/ctv/":[40708,"ui-ctv3"],"./bn-IN/ctv/":[83789,"ui-ctv4"],"./ca/ctv/":[91943,"ui-ctv5"],"./cs/ctv/":[68149,"ui-ctv6"],"./da/ctv/":[95604,"ui-ctv7"],"./de-AT/ctv/":[68666,"ui-ctv8"],"./de-CH/ctv/":[96212,"ui-ctv9"],"./de/ctv/":[37864,"ui-ctv10"],"./el/ctv/":[64114,"ui-ctv11"],"./en-GB/ctv/":[39722,"ui-ctv12"],"./en-NZ/ctv/":[66531,"ui-ctv13"],"./en/ctv/":[16924,"ui-ctv14"],"./es/ctv/":[24295,"ui-ctv15"],"./et/ctv/":[34346,"ui-ctv16"],"./fi/ctv/":[61642,"ui-ctv17"],"./fil/ctv/":[94050,"ui-ctv18"],"./fr-BE/ctv/":[67431,"ui-ctv19"],"./fr-CA/ctv/":[3098,"ui-ctv20"],"./fr/ctv/":[29067,"ui-ctv21"],"./he/ctv/":[65396,"ui-ctv22"],"./hi-IN/ctv/":[16060,"ui-ctv23"],"./hr/ctv/":[62517,"ui-ctv24"],"./hu/ctv/":[66948,"ui-ctv25"],"./id/ctv/":[79110,"ui-ctv26"],"./it/ctv/":[43446,"ui-ctv27"],"./ja/ctv/":[54390,"ui-ctv28"],"./ko/ctv/":[84657,"ui-ctv29"],"./lt/ctv/":[37023,"ui-ctv30"],"./lv/ctv/":[77469,"ui-ctv31"],"./mk-MK/ctv/":[61730,"ui-ctv32"],"./ms/ctv/":[89679,"ui-ctv33"],"./nl-BE/ctv/":[13521,"ui-ctv34"],"./nl/ctv/":[45533,"ui-ctv35"],"./no/ctv/":[94592,"ui-ctv36"],"./pl/ctv/":[79827,"ui-ctv37"],"./pt-BR/ctv/":[37642,"ui-ctv38"],"./pt/ctv/":[2203,"ui-ctv39"],"./ro/ctv/":[19692,"ui-ctv40"],"./ru/ctv/":[43738,"ui-ctv41"],"./sk/ctv/":[87693,"ui-ctv42"],"./sl/ctv/":[13340,"ui-ctv43"],"./sr-Latn/ctv/":[3340,"ui-ctv44"],"./sr/ctv/":[30110,"ui-ctv45"],"./sv/ctv/":[76618,"ui-ctv46"],"./sw/ctv/":[82081,"ui-ctv47"],"./th/ctv/":[62539,"ui-ctv48"],"./tr/ctv/":[60865,"ui-ctv49"],"./uk/ctv/":[23487,"ui-ctv50"],"./vi/ctv/":[9562,"ui-ctv51"],"./zh-CN/ctv/":[65349,"ui-ctv52"],"./zh-TW/ctv/":[70265,"ui-ctv53"]};function r(e){if(!n.o(s,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=s[e],r=t[0];return n.e(t[1]).then(function(){return n(r)})}r.keys=function(){return Object.keys(s)},r.id=75604,e.exports=r},76406:function(e,t,n){"use strict";n.d(t,{H:function(){return d}});var s=n(58168),r=n(34576),i=n(2073),o=n(66559),a=n(77396),u=n(58975),l=n(50378),d=(0,r.EW)(()=>{var e,t={firstPartyOperators:[],firstPartyOperatorIds:[],thirdPartyOperators:[],thirdPartyOperatorIds:[],operators:[],operatorsByProcessingRule:{firstPartyOperatorIds:{optin:[],optout:[],essential:[],specialPurposes:[]},thirdPartyOperatorIds:{optin:[],optout:[],essential:[],specialPurposes:[]},operatorIds:{optin:[],optout:[],essential:[],specialPurposes:[]}},operatorIdsByCollectionMethod:{optin:[],optout:[],essential:[],specialPurposes:[]},operatorIdsWithAtLeastOneOptinPurpose:[],operatorIdsWithAtLeastOneOptoutPurpose:[]};if(null==(e=i.R.value)||!e.length||(0,l.Im)(o.o.value))return t;var n=function(e){var n=o.o.value[e];if(n){var{operatorTypeIdsKey:r,operatorTypeKey:i}="1st_party"===n.type?{operatorTypeIdsKey:"firstPartyOperatorIds",operatorTypeKey:"firstPartyOperators"}:{operatorTypeIdsKey:"thirdPartyOperatorIds",operatorTypeKey:"thirdPartyOperators"},l=((e,t)=>{var n,s=new Set,r=[];return e.purposeIds&&e.purposeIds.length>0&&(r.push(...e.purposeIds),e.purposeIds.every(e=>t.includes(e))?s.add("essential"):s.add("optin")),e.legIntPurposeIds&&e.legIntPurposeIds.length>0&&(r.push(...e.legIntPurposeIds),e.legIntPurposeIds.every(e=>t.includes(e))?s.add("essential"):s.add("optout")),r.some(e=>t.includes(e))&&s.add("essential"),0===s.size&&(null==(n=e.specialPurposeIds)?void 0:n.length)>0&&s.add("specialPurposes"),[...s]})(n,a.T.value),d=((e,t,n)=>{var s=new Set;for(var r of t)for(var i of Object.keys(n)){var o=n[i].collect.operators[e];o.enable&&(Array.isArray(o.as)&&o.as.length?o.as.includes(r)&&s.add(i):i===r&&s.add(r))}return[...s]})(i,l,u.B.value),c=(0,s.A)({},n,{processingRules:l,collectionMethods:d});t[i].push(c),t.operators.push(c),t[r].push(e),d.forEach(n=>t.operatorIdsByCollectionMethod[n].push(e)),l.forEach(n=>{t.operatorsByProcessingRule[r][n].push(e),t.operatorsByProcessingRule.operatorIds[n].push(e)}),n.legIntPurposeIds&&n.legIntPurposeIds.length>0&&t.operatorIdsWithAtLeastOneOptoutPurpose.push(e),n.purposeIds&&n.purposeIds.length>0&&t.operatorIdsWithAtLeastOneOptinPurpose.push(e)}};for(var r of i.R.value)n(r);return t})},76447:function(e,t){"use strict";function n(e,t){if(null!=t){if(t.then)return t.then(e.setState);e.setState(t)}}},76638:function(e,t,n){"use strict";n.d(t,{XK:function(){return a},aI:function(){return Q},FY:function(){return U},Y4:function(){return v},jT:function(){return X},de:function(){return ee},Mi:function(){return V},sH:function(){return G}});class s extends Error{constructor(e){super(e),this.name="DecodingError"}}class r extends Error{constructor(e){super(e),this.name="EncodingError"}}class i extends Error{constructor(e){super(e),this.name="GVLError"}}class o extends Error{constructor(e,t,n){void 0===n&&(n=""),super("invalid value "+t+" passed for "+e+" "+n),this.name="TCModelError"}}class a{static encode(e){if(!/^[0-1]+$/.test(e))throw new r("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var n="",s=0;s=2&&2==t.length){if(u.langSet.has(e))return e;if(u.langSet.has(t))return t;var n=t+"-"+t;if(u.langSet.has(n))return n;for(var s of u.langSet)if(-1!==s.indexOf(e)||-1!==s.indexOf(t))return s}throw new Error("unsupported language "+e)}forEach(e){u.langSet.forEach(e)}get size(){return u.langSet.size}}u.langSet=new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HI","HR","HU","ID","IS","IT","JA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SR-LATN","SR-CYRL","SV","TL","TR","UK","ZH","ZH-HANT"]);class l{}l.cmpId="cmpId",l.cmpVersion="cmpVersion",l.consentLanguage="consentLanguage",l.consentScreen="consentScreen",l.created="created",l.supportOOB="supportOOB",l.isServiceSpecific="isServiceSpecific",l.lastUpdated="lastUpdated",l.numCustomPurposes="numCustomPurposes",l.policyVersion="policyVersion",l.publisherCountryCode="publisherCountryCode",l.publisherCustomConsents="publisherCustomConsents",l.publisherCustomLegitimateInterests="publisherCustomLegitimateInterests",l.publisherLegitimateInterests="publisherLegitimateInterests",l.publisherConsents="publisherConsents",l.publisherRestrictions="publisherRestrictions",l.purposeConsents="purposeConsents",l.purposeLegitimateInterests="purposeLegitimateInterests",l.purposeOneTreatment="purposeOneTreatment",l.specialFeatureOptins="specialFeatureOptins",l.useNonStandardTexts="useNonStandardTexts",l.vendorConsents="vendorConsents",l.vendorLegitimateInterests="vendorLegitimateInterests",l.vendorListVersion="vendorListVersion",l.vendorsAllowed="vendorsAllowed",l.vendorsDisclosed="vendorsDisclosed",l.version="version";class d{clone(){var e=new this.constructor;return Object.keys(this).forEach(t=>{var n=this.deepClone(this[t]);void 0!==n&&(e[t]=n)}),e}deepClone(e){var t=typeof e;if("number"===t||"string"===t||"boolean"===t)return e;if(null!==e&&"object"===t){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var n=[];for(var s of e)n.push(this.deepClone(s));return e instanceof Array?n:new e.constructor(n)}var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=this.deepClone(e[i]));return r}}}var c,p,v,h,f,g,m,b,I,y,S,C,w,A,_,P,E,O,k,L,T,D;!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(c||(c={}));class U extends d{constructor(e,t){super(),this.purposeId_=void 0,this.restrictionType=void 0,void 0!==e&&(this.purposeId=e),void 0!==t&&(this.restrictionType=t)}static unHash(e){var t=e.split(this.hashSeparator),n=new U;if(2!==t.length)throw new o("hash",e);return n.purposeId=parseInt(t[0],10),n.restrictionType=parseInt(t[1],10),n}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return""+this.purposeId+U.hashSeparator+this.restrictionType}get purposeId(){return this.purposeId_}set purposeId(e){this.purposeId_=e}isValid(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===c.NOT_ALLOWED||this.restrictionType===c.REQUIRE_CONSENT||this.restrictionType===c.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}U.hashSeparator="-";class R extends d{constructor(){super(...arguments),this.bitLength=0,this.map=new Map,this.gvl_=void 0}has(e){return this.map.has(e)}isOkToHave(e,t,n){var s,r=!0;if(null!=(s=this.gvl)&&s.vendors){var i=this.gvl.vendors[n];if(i)if(e===c.NOT_ALLOWED)r=i.legIntPurposes.includes(t)||i.purposes.includes(t);else if(i.flexiblePurposes.length)switch(e){case c.REQUIRE_CONSENT:r=i.flexiblePurposes.includes(t)&&i.legIntPurposes.includes(t);break;case c.REQUIRE_LI:r=i.flexiblePurposes.includes(t)&&i.purposes.includes(t)}else r=!1;else r=!1}return r}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var n=t.hash;this.has(n)||(this.map.set(n,new Set),this.bitLength=0),this.map.get(n).add(e)}}restrictPurposeToLegalBasis(e,t){void 0===t&&(t=[...this.gvl.vendorIds]);var n=e.hash;if(this.has(n)){var s=this.map.get(n);for(var r of t)s.add(r)}else this.map.set(n,new Set(t)),this.bitLength=0}getVendors(e){var t=[];if(e){var n=e.hash;this.has(n)&&(t=[...this.map.get(n)])}else{var s=new Set;this.map.forEach(e=>{[...e].forEach(e=>{s.add(e)})}),t=[...s]}return t.sort((e,t)=>e-t)}getRestrictionType(e,t){var n;return this.getRestrictions(e).forEach(e=>{e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)}),n}vendorHasRestriction(e,t){for(var n=!1,s=this.getRestrictions(e),r=0;r{var n=[...t];e=Math.max(n[n.length-1],e)}),e}getRestrictions(e){var t=[];return this.map.forEach((n,s)=>{e?n.has(e)&&t.push(U.unHash(s)):t.push(U.unHash(s))}),t}getPurposes(){var e=new Set;return this.map.forEach((t,n)=>{e.add(U.unHash(n).purposeId)}),[...e]}remove(e,t){var n=t.hash,s=this.map.get(n);s&&(s.delete(e),0==s.size&&(this.map.delete(n),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach((e,t)=>{var n=U.unHash(t);[...e].forEach(t=>{this.isOkToHave(n.restrictionType,n.purposeId,t)||e.delete(t)})}))}get gvl(){return this.gvl_}isEmpty(){return 0===this.map.size}get numRestrictions(){return this.map.size}}!function(e){e.COOKIE="cookie",e.WEB="web",e.APP="app"}(p||(p={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(v||(v={}));class B{}B.ID_TO_KEY=[v.CORE,v.VENDORS_DISCLOSED,v.VENDORS_ALLOWED,v.PUBLISHER_TC],B.KEY_TO_ID={[v.CORE]:0,[v.VENDORS_DISCLOSED]:1,[v.VENDORS_ALLOWED]:2,[v.PUBLISHER_TC]:3};class V extends d{constructor(){super(...arguments),this.bitLength=0,this.maxId_=0,this.set_=new Set}*[Symbol.iterator](){for(var e=1;e<=this.maxId;e++)yield[e,this.has(e)]}toArray(){for(var e=new Array(0),t=1;t<=this.maxId;t++)e.push([t,this.has(t)]);return e}values(){return this.set_.values()}get maxId(){return this.maxId_}has(e){return this.set_.has(e)}unset(e){Array.isArray(e)?e.forEach(e=>this.unset(e)):"object"==typeof e?this.unset(Object.keys(e).map(e=>Number(e))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach(e=>{this.maxId_=Math.max(this.maxId,e)})))}isIntMap(e){var t="object"==typeof e;return t=t&&Object.keys(e).every(t=>{var n=Number.isInteger(parseInt(t,10));return n=(n=n&&this.isValidNumber(e[t].id))&&void 0!==e[t].name})}isValidNumber(e){return parseInt(e,10)>0}isSet(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}set(e){if(Array.isArray(e))e.forEach(e=>this.set(e));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map(e=>Number(e)));else{if(!this.isValidNumber(e))throw new o("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}empty(){this.set_=new Set}forEach(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}get size(){return this.set_.size}setAll(e){this.set(e)}unsetAll(e){this.unset(e)}}h=l.cmpId,f=l.cmpVersion,g=l.consentLanguage,m=l.consentScreen,b=l.created,I=l.isServiceSpecific,y=l.lastUpdated,S=l.policyVersion,C=l.publisherCountryCode,w=l.publisherLegitimateInterests,A=l.publisherConsents,_=l.purposeConsents,P=l.purposeLegitimateInterests,E=l.purposeOneTreatment,O=l.specialFeatureOptins,k=l.useNonStandardTexts,L=l.vendorListVersion,T=l.version;class N{}N[h]=12,N[f]=12,N[g]=12,N[m]=6,N[b]=36,N[I]=1,N[y]=36,N[S]=6,N[C]=12,N[w]=24,N[A]=24,N[_]=24,N[P]=24,N[E]=1,N[O]=12,N[k]=1,N[L]=12,N[T]=6,N.anyBoolean=1,N.encodingType=1,N.maxId=16,N.numCustomPurposes=6,N.numEntries=12,N.numRestrictions=12,N.purposeId=6,N.restrictionType=2,N.segmentType=3,N.singleOrRange=1,N.vendorId=16;class x{static encode(e,t){var n;if("string"==typeof e&&(e=parseInt(e,10)),(n=e.toString(2)).length>t||e<0)throw new r(e+" too large to encode into "+t);return n.length25||s<0||s>25)throw new r("invalid language code: "+e);if(t%2==1)throw new r("numBits must be even, "+t+" is not valid");return t/=2,x.encode(n,t)+x.encode(s,t)}static decode(e,t){if(t!==e.length||e.length%2)throw new s("invalid bit length for language");var n=e.length/2,r=x.decode(e.slice(0,n),n)+65,i=x.decode(e.slice(n),n)+65;return String.fromCharCode(r)+String.fromCharCode(i)}}class W{static encode(e){var t=x.encode(e.numRestrictions,N.numRestrictions);if(!e.isEmpty()){var n=[...e.gvl.vendorIds],s=(e,t)=>{var s=n.indexOf(e);return n.indexOf(t)-s>1};e.getRestrictions().forEach(n=>{t+=x.encode(n.purposeId,N.purposeId),t+=x.encode(n.restrictionType,N.restrictionType);for(var r=e.getVendors(n),i=r.length,o=0,a=0,u="",l=0;li+t);n.restrictPurposeToLegalBasis(u,a)}else n.restrictPurposeToLegalBasis(u,[i])},c=0;c{(i+=F.encode(r),(t=e.maxId>u&&l{var t=1===e.length;n+=F.encode(!t),n+=x.encode(e[0],N.vendorId),t||(n+=x.encode(e[1],N.vendorId))}),n}}function J(){return{[l.version]:x,[l.created]:M,[l.lastUpdated]:M,[l.cmpId]:x,[l.cmpVersion]:x,[l.consentScreen]:x,[l.consentLanguage]:j,[l.vendorListVersion]:x,[l.policyVersion]:x,[l.isServiceSpecific]:F,[l.useNonStandardTexts]:F,[l.specialFeatureOptins]:z,[l.purposeConsents]:z,[l.purposeLegitimateInterests]:z,[l.purposeOneTreatment]:F,[l.publisherCountryCode]:j,[l.vendorConsents]:G,[l.vendorLegitimateInterests]:G,[l.publisherRestrictions]:W,segmentType:x,[l.vendorsDisclosed]:G,[l.vendorsAllowed]:G,[l.publisherConsents]:z,[l.publisherLegitimateInterests]:z,[l.numCustomPurposes]:x,[l.publisherCustomConsents]:z,[l.publisherCustomLegitimateInterests]:z}}class q{constructor(e,t){if(this[1]=[v.CORE],this[2]=[v.CORE],2===e.version)if(e.isServiceSpecific)this[2].push(v.VENDORS_DISCLOSED),this[2].push(v.PUBLISHER_TC);else{var n=!(!t||!t.isForVendors);n&&!0!==e[l.supportOOB]||this[2].push(v.VENDORS_DISCLOSED),n&&(e[l.supportOOB]&&e[l.vendorsAllowed].size>0&&this[2].push(v.VENDORS_ALLOWED),this[2].push(v.PUBLISHER_TC))}}}class K{static encode(e,t){var n;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new r("Unable to encode version: "+e.version+", segment: "+t)}var s="";t!==v.CORE&&(s=x.encode(B.KEY_TO_ID[t],N.segmentType));var i=J();return n.forEach(n=>{var o=e[n],a=i[n],u=N[n];void 0===u&&this.isPublisherCustom(n)&&(u=Number(e[l.numCustomPurposes]));try{s+=a.encode(o,u)}catch(e){throw new r("Error encoding "+t+"->"+n+": "+e.message)}}),a.encode(s)}static decode(e,t,n){var r=a.decode(e),i=0;n===v.CORE&&(t.version=x.decode(r.substr(i,N[l.version]),N[l.version])),n!==v.CORE&&(i+=N.segmentType);var o=this.fieldSequence[String(t.version)][n],u=J();return o.forEach(e=>{var n=u[e],o=N[e];if(void 0===o&&this.isPublisherCustom(e)&&(o=Number(t[l.numCustomPurposes])),0!==o){var a=r.substr(i,o);if(t[e]=n===G?n.decode(a,t.version):n.decode(a,o),Number.isInteger(o))i+=o;else{if(!Number.isInteger(t[e].bitLength))throw new s(e);i+=t[e].bitLength}}}),t}static isPublisherCustom(e){return 0===e.indexOf("publisherCustom")}}K.fieldSequence=new class{constructor(){this[1]={[v.CORE]:[l.version,l.created,l.lastUpdated,l.cmpId,l.cmpVersion,l.consentScreen,l.consentLanguage,l.vendorListVersion,l.purposeConsents,l.vendorConsents]},this[2]={[v.CORE]:[l.version,l.created,l.lastUpdated,l.cmpId,l.cmpVersion,l.consentScreen,l.consentLanguage,l.vendorListVersion,l.policyVersion,l.isServiceSpecific,l.useNonStandardTexts,l.specialFeatureOptins,l.purposeConsents,l.purposeLegitimateInterests,l.purposeOneTreatment,l.publisherCountryCode,l.vendorConsents,l.vendorLegitimateInterests,l.publisherRestrictions],[v.VENDORS_DISCLOSED]:[l.vendorsDisclosed],[v.PUBLISHER_TC]:[l.publisherConsents,l.publisherLegitimateInterests,l.numCustomPurposes,l.publisherCustomConsents,l.publisherCustomLegitimateInterests],[v.VENDORS_ALLOWED]:[l.vendorsAllowed]}}};class H{static process(e,t){var n=e.gvl;if(!n)throw new r("Unable to encode TCModel without a GVL");if(!n.isReady)throw new r("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=n.language.slice(0,2).toUpperCase(),(null==t?void 0:t.version)>0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var s=e.version-1;if(!this.processor[s])throw new r("Invalid version: "+e.version);return this.processor[s](e,n)}}H.processor=[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach((n,s)=>{n.forEach((r,i)=>{if(r){var o=t.vendors[i];if(!o||o.deletedDate)n.unset(i);else if(0===o[s].length)if("legIntPurposes"===s&&0===o.purposes.length&&0===o.legIntPurposes.length&&o.specialPurposes.length>0)n.set(i);else if("legIntPurposes"===s&&o.purposes.length>0&&0===o.legIntPurposes.length&&o.specialPurposes.length>0)n.set(i);else if(e.isServiceSpecific)if(0===o.flexiblePurposes.length)n.unset(i);else{for(var a=e.publisherRestrictions.getRestrictions(i),u=!1,l=0,d=a.length;l{var o=new XMLHttpRequest;o.withCredentials=n,o.addEventListener("load",()=>{if(o.readyState==XMLHttpRequest.DONE)if(o.status>=200&&o.status<300){var e=o.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}r(e)}else i(new Error("HTTP Status: "+o.status+" response type: "+o.responseType))}),o.addEventListener("error",()=>{i(new Error("error"))}),o.addEventListener("abort",()=>{i(new Error("aborted"))}),null===t?o.open("GET",e,!0):o.open("POST",e,!0),o.responseType="json",o.timeout=s,o.ontimeout=()=>{i(new Error("Timeout "+s+"ms "+e))},o.send(t)})}static post(e,t,n,s){return void 0===n&&(n=!1),void 0===s&&(s=0),this.absCall(e,JSON.stringify(t),n,s)}static fetch(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=0),this.absCall(e,null,t,n)}}class Q extends d{static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new i("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}static get baseUrl(){return this.baseUrl_}constructor(e){super(),this.readyPromise=void 0,this.gvlSpecificationVersion=void 0,this.vendorListVersion=void 0,this.tcfPolicyVersion=void 0,this.lastUpdated=void 0,this.purposes=void 0,this.specialPurposes=void 0,this.features=void 0,this.specialFeatures=void 0,this.isReady_=!1,this.vendors_=void 0,this.vendorIds=void 0,this.fullVendorList=void 0,this.byPurposeVendorMap=void 0,this.bySpecialPurposeVendorMap=void 0,this.byFeatureVendorMap=void 0,this.bySpecialFeatureVendorMap=void 0,this.stacks=void 0,this.dataCategories=void 0,this.lang_=void 0,this.cacheLang_=void 0,this.isLatest=!1;var t=Q.baseUrl;if(this.lang_=Q.DEFAULT_LANGUAGE,this.cacheLang_=Q.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!t)throw new i("must specify GVL.baseUrl before loading GVL json");if(e>0){var n=e;Q.CACHE.has(n)?(this.populate(Q.CACHE.get(n)),this.readyPromise=Promise.resolve()):(t+=Q.versionedFilename.replace("[VERSION]",String(n)),this.readyPromise=this.fetchJson(t))}else Q.CACHE.has(Q.LATEST_CACHE_KEY)?(this.populate(Q.CACHE.get(Q.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(t+Q.latestFilename))}}static emptyLanguageCache(e){var t=!1;return null==e&&Q.LANGUAGE_CACHE.size>0?(Q.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(Q.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}static emptyCache(e){var t=!1;return Number.isInteger(e)&&e>=0?(Q.CACHE.delete(e),t=!0):void 0===e&&(Q.CACHE=new Map,t=!0),t}cacheLanguage(){Q.LANGUAGE_CACHE.has(this.cacheLang_)||Q.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}fetchJson(e){var t=this;return(0,Y.A)(function*(){try{t.populate(yield $.fetch(e))}catch(e){throw new i(e.message)}})()}getJson(){return(0,Z.A)({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks()},this.dataCategories?{dataCategories:this.cloneDataCategories()}:{},{vendors:this.cloneVendors()})}cloneSpecialFeatures(){var e={};for(var t of Object.keys(this.specialFeatures))e[t]=Q.cloneFeature(this.specialFeatures[t]);return e}cloneFeatures(){var e={};for(var t of Object.keys(this.features))e[t]=Q.cloneFeature(this.features[t]);return e}cloneStacks(){var e={};for(var t of Object.keys(this.stacks))e[t]=Q.cloneStack(this.stacks[t]);return e}cloneDataCategories(){var e={};for(var t of Object.keys(this.dataCategories))e[t]=Q.cloneDataCategory(this.dataCategories[t]);return e}cloneSpecialPurposes(){var e={};for(var t of Object.keys(this.specialPurposes))e[t]=Q.clonePurpose(this.specialPurposes[t]);return e}clonePurposes(){var e={};for(var t of Object.keys(this.purposes))e[t]=Q.clonePurpose(this.purposes[t]);return e}static clonePurpose(e){return(0,Z.A)({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{},e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}static cloneFeature(e){return(0,Z.A)({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{},e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}static cloneDataCategory(e){return{id:e.id,name:e.name,description:e.description}}static cloneStack(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}static cloneDataRetention(e){return(0,Z.A)({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{},{purposes:(0,Z.A)({},e.purposes),specialPurposes:(0,Z.A)({},e.specialPurposes)})}static cloneVendorUrls(e){return e.map(e=>(0,Z.A)({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{}))}static cloneVendor(e){return(0,Z.A)({id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures)},e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{},"number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{},void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{},e.policyUrl?{policyUrl:e.policyUrl}:{},void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{},void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{},e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{},e.urls?{urls:this.cloneVendorUrls(e.urls)}:{},e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{},e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{},e.deletedDate?{deletedDate:e.deletedDate}:{})}cloneVendors(){var e={};for(var t of Object.keys(this.fullVendorList))e[t]=Q.cloneVendor(this.fullVendorList[t]);return e}changeLanguage(e){var t=this;return(0,Y.A)(function*(){var n=e;try{n=Q.consentLanguages.parseLanguage(e)}catch(e){throw new i("Error during parsing the language: "+e.message)}var s=e.toUpperCase();if((n.toLowerCase()!==Q.DEFAULT_LANGUAGE.toLowerCase()||Q.LANGUAGE_CACHE.has(s))&&n!==t.lang_)if(t.lang_=n,Q.LANGUAGE_CACHE.has(s)){var r=Q.LANGUAGE_CACHE.get(s);for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}else{var a=Q.baseUrl+Q.languageFilename.replace("[LANG]",t.lang_.toLowerCase());try{yield t.fetchJson(a),t.cacheLang_=s,t.cacheLanguage()}catch(e){throw new i("unable to load language: "+e.message)}}})()}get language(){return this.lang_}isVendorList(e){return void 0!==e&&void 0!==e.vendors}populate(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&Q.CACHE.set(Q.LATEST_CACHE_KEY,this.getJson()),Q.CACHE.has(this.vendorListVersion)||Q.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(e){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(e=>{this.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(e=>{this.bySpecialPurposeVendorMap[e]=new Set}),Object.keys(this.features).forEach(e=>{this.byFeatureVendorMap[e]=new Set}),Object.keys(this.specialFeatures).forEach(e=>{this.bySpecialFeatureVendorMap[e]=new Set}),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map(e=>+e)),this.vendorIds=new Set(e),this.vendors_=e.reduce((e,t)=>{var n=this.vendors_[String(t)];return n&&void 0===n.deletedDate&&(n.purposes.forEach(e=>{this.byPurposeVendorMap[String(e)].consent.add(t)}),n.specialPurposes.forEach(e=>{this.bySpecialPurposeVendorMap[String(e)].add(t)}),n.legIntPurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].legInt.add(t)}),n.flexiblePurposes&&n.flexiblePurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].flexible.add(t)}),n.features.forEach(e=>{this.byFeatureVendorMap[String(e)].add(t)}),n.specialFeatures.forEach(e=>{this.bySpecialFeatureVendorMap[String(e)].add(t)}),e[t]=n),e},{})}getFilteredVendors(e,t,n,s){var r=e.charAt(0).toUpperCase()+e.slice(1),i={};return("purpose"===e&&n?this["by"+r+"VendorMap"][String(t)][n]:this["by"+(s?"Special":"")+r+"VendorMap"][String(t)]).forEach(e=>{i[String(e)]=this.vendors[String(e)]}),i}getVendorsWithConsentPurpose(e){return this.getFilteredVendors("purpose",e,"consent")}getVendorsWithLegIntPurpose(e){return this.getFilteredVendors("purpose",e,"legInt")}getVendorsWithFlexiblePurpose(e){return this.getFilteredVendors("purpose",e,"flexible")}getVendorsWithSpecialPurpose(e){return this.getFilteredVendors("purpose",e,void 0,!0)}getVendorsWithFeature(e){return this.getFilteredVendors("feature",e)}getVendorsWithSpecialFeature(e){return this.getFilteredVendors("feature",e,void 0,!0)}get vendors(){return this.vendors_}narrowVendorsTo(e){this.mapVendors(e)}get isReady(){return this.isReady_}clone(){var e=new Q(this.getJson());return this.lang_!==Q.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo}}Q.LANGUAGE_CACHE=new Map,Q.CACHE=new Map,Q.LATEST_CACHE_KEY=0,Q.DEFAULT_LANGUAGE="EN",Q.consentLanguages=new u,Q.baseUrl_=void 0,Q.latestFilename="vendor-list.json",Q.versionedFilename="archives/vendor-list-v[VERSION].json",Q.languageFilename="purposes-[LANG].json";class X extends d{constructor(e){super(),this.isServiceSpecific_=!0,this.supportOOB_=!1,this.useNonStandardTexts_=!1,this.purposeOneTreatment_=!1,this.publisherCountryCode_="AA",this.version_=2,this.consentScreen_=0,this.policyVersion_=5,this.consentLanguage_="EN",this.cmpId_=0,this.cmpVersion_=0,this.vendorListVersion_=0,this.numCustomPurposes_=0,this.gvl_=void 0,this.created=void 0,this.lastUpdated=void 0,this.specialFeatureOptins=new V,this.purposeConsents=new V,this.purposeLegitimateInterests=new V,this.publisherConsents=new V,this.publisherLegitimateInterests=new V,this.publisherCustomConsents=new V,this.publisherCustomLegitimateInterests=new V,this.customPurposes=void 0,this.vendorConsents=new V,this.vendorLegitimateInterests=new V,this.vendorsDisclosed=new V,this.vendorsAllowed=new V,this.publisherRestrictions=new R,e&&(this.gvl=e),this.updated()}set gvl(e){Q.isInstanceOf(e)||(e=new Q(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}get gvl(){return this.gvl_}set cmpId(e){if(e=Number(e),!(Number.isInteger(e)&&e>1))throw new o("cmpId",e);this.cmpId_=e}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new o("cmpVersion",e);this.cmpVersion_=e}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new o("consentScreen",e);this.consentScreen_=e}get consentScreen(){return this.consentScreen_}set consentLanguage(e){this.consentLanguage_=e}get consentLanguage(){return this.consentLanguage_}set publisherCountryCode(e){if(!/^([A-z]){2}$/.test(e))throw new o("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if((e=Number(e)|0)<0)throw new o("vendorListVersion",e);this.vendorListVersion_=e}get vendorListVersion(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_}set policyVersion(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new o("policyVersion",e)}get policyVersion(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_}set version(e){this.version_=parseInt(e,10)}get version(){return this.version_}set isServiceSpecific(e){this.isServiceSpecific_=e}get isServiceSpecific(){return this.isServiceSpecific_}set useNonStandardTexts(e){this.useNonStandardTexts_=e}get useNonStandardTexts(){return this.useNonStandardTexts_}set supportOOB(e){this.supportOOB_=e}get supportOOB(){return this.supportOOB_}set purposeOneTreatment(e){this.purposeOneTreatment_=e}get purposeOneTreatment(){return this.purposeOneTreatment_}setAllVendorConsents(){this.vendorConsents.set(this.gvl.vendors)}unsetAllVendorConsents(){this.vendorConsents.empty()}setAllVendorsDisclosed(){this.vendorsDisclosed.set(this.gvl.vendors)}unsetAllVendorsDisclosed(){this.vendorsDisclosed.empty()}setAllVendorsAllowed(){this.vendorsAllowed.set(this.gvl.vendors)}unsetAllVendorsAllowed(){this.vendorsAllowed.empty()}setAllVendorLegitimateInterests(){this.vendorLegitimateInterests.set(this.gvl.vendors)}unsetAllVendorLegitimateInterests(){this.vendorLegitimateInterests.empty()}setAllPurposeConsents(){this.purposeConsents.set(this.gvl.purposes)}unsetAllPurposeConsents(){this.purposeConsents.empty()}setAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.set(this.gvl.purposes)}unsetAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.empty()}setAllSpecialFeatureOptins(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}unsetAllSpecialFeatureOptins(){this.specialFeatureOptins.empty()}setAll(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}unsetAll(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}get numCustomPurposes(){var e=this.numCustomPurposes_;if("object"==typeof this.customPurposes){var t=Object.keys(this.customPurposes).sort((e,t)=>Number(e)-Number(t));e=parseInt(t.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new o("numCustomPurposes",e)}updated(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}X.consentLanguages=Q.consentLanguages;class ee{static encode(e,t){var n,s="";return e=H.process(e,t),(n=Array.isArray(null==t?void 0:t.segments)?t.segments:new q(e,t)[""+e.version]).forEach((t,r)=>{var i="";r{var e,t=null==(e=s.U.value)?void 0:e.essentialPurposes;return t&&Array.isArray(t)?t.filter(Boolean).filter(e=>{var t,n;return"custom"===(null==(t=r.m.value)||null==(n=t[e])?void 0:n.namespace)}):[]})},78691:function(e,t,n){"use strict";n.d(t,{Y:function(){return l},x:function(){return u}});var s=n(58168),r=n(34576),i=e=>/^[A-Za-z0-9-_]+$/.test(e),o=n(20152),a=n(98074),u=(0,r.EW)(()=>{var e,t=null==(e=o.U.value)?void 0:e.customPurposes,n=[];if(t&&Array.isArray(t))for(var r of t)i(r.id)?a.B.value.includes(r.id)||n.push((0,s.A)({},r,{namespace:"custom"})):console.error('Didomi - The purpose id "'+r.id+'" is not valid. Ignoring it.');return n}),l=(0,r.EW)(()=>u.value.map(e=>e.id))},78939:function(e,t,n){"use strict";n.d(t,{M:function(){return a},b:function(){return o}});var s=n(34576),r=n(20259),i=n(50378),o=(0,s.EW)(()=>{var e,t,n,s,o=(0,i.Go)({apiPath:"https://api.privacy-center.org/v1",customSDKPath:"https://sdk.privacy-center.org/custom/",sdkPathForTCFVendorsStorageDisclosures:"https://sdk.privacy-center.org/",iabGlobalCookiesDomain:"didomi.mgr.consensu.org",globalCookiesProtocol:"https",pmpSdkPath:"https://pmp-sdk.privacy-center.org",removeDeletedIABVendorsForAllClients:!0,removeDeletedIABVendorsForAPIKeys:[],events:{sampleSizes:{pageview:.03,consentAsked:.1,consentGiven:1,uiActionPreferencesPurposes:1,uiActionPreferencesVendors:1,uiActionPreferencesPurposeChanged:1,uiActionPreferencesVendorChanged:1,uiActionPreferencesShownPersonalDataTypes:1,uiActionPreferencesSPIChanged:1,syncAcknowledged:1}}});return r.bK.value&&Object.hasOwn(r.bK.value,"apiPath")&&"string"==typeof(null==(e=r.bK.value)?void 0:e.apiPath)&&null!=(t=r.bK.value)&&t.apiPath&&(o.apiPath=r.bK.value.apiPath),r.bK.value&&Object.hasOwn(r.bK.value,"sdkPath")&&"string"==typeof(null==(n=r.bK.value)?void 0:n.sdkPath)&&null!=(s=r.bK.value)&&s.sdkPath&&(o.sdkPath=r.bK.value.sdkPath),o}),a=e=>Object.hasOwn(o.value,e)?o.value[e]:void 0},80305:function(e,t,n){"use strict";n.d(t,{M:function(){return s},R:function(){return r}});var s=(0,n(34576).vP)(null),r=e=>{s.value=e}},81062:function(e,t,n){"use strict";n.d(t,{A:function(){return D}});var s,r,i,o,a,u,l,d,c,p,v,h,f,g,m,b,I,y,S,C,w,A,_,P,E,O,k=n(34576),L=window.didomiVendorListCore||{p:[],sp:[],f:[],sf:[],st:[],s:[]},T={vendorListVersion:null==L?void 0:L.v,lastUpdated:null==L?void 0:L.l,gvlSpecificationVersion:null==L?void 0:L.gsv,tcfPolicyVersion:null==L?void 0:L.tpv,purposes:null==L||null==(s=L.p)?void 0:s.map(e=>({id:e})),specialPurposes:null==L||null==(r=L.sp)?void 0:r.map(e=>({id:e})),features:null==L||null==(i=L.f)?void 0:i.map(e=>({id:e})),specialFeatures:null==L||null==(o=L.sf)?void 0:o.map(e=>({id:e})),stacks:null==L||null==(a=L.st)?void 0:a.map(e=>({id:null==e?void 0:e.i,purposeIds:(null==e?void 0:e.p)||[],specialFeatureIds:(null==e?void 0:e.sf)||[]})),vendors:null==L?void 0:L.s.map(e=>({id:null==e?void 0:e.i,purposeIds:(null==e?void 0:e.p)||[],flexiblePurposeIds:(null==e?void 0:e.fp)||[],specialPurposeIds:(null==e?void 0:e.sp)||[],legIntPurposeIds:(null==e?void 0:e.l)||[],featureIds:(null==e?void 0:e.f)||[],specialFeatureIds:(null==e?void 0:e.sf)||[],didomiId:null==e?void 0:e.di,tmpDeletedDate:null==e?void 0:e.dd}))};null!=(u=window)&&null!=(l=u.didomiConfig)&&null!=(d=l.website)&&null!=(c=d.vendors)&&null!=(p=c.iab)&&p.vendorList||null!=(v=window)&&null!=(h=v.didomiConfig)&&null!=(f=h.app)&&null!=(g=f.vendors)&&null!=(m=g.iab)&&m.vendorList?b=(null==(I=window)||null==(y=I.didomiConfig)||null==(S=y.website)||null==(C=S.vendors)||null==(w=C.iab)?void 0:w.vendorList)||(null==(A=window)||null==(_=A.didomiConfig)||null==(P=_.app)||null==(E=P.vendors)||null==(O=E.iab)?void 0:O.vendorList):b=T;var D=(0,k.vP)(b)},81723:function(e,t,n){"use strict";n.d(t,{C:function(){return d}});var s=n(34576),r=n(20152),i=n(66559),o=n(81062),a=n(9757),u=n(36217),l=n(61304),d=(0,s.EW)(()=>{var e,t,n,s,d=null==(e=r.U.value)||null==(t=e.vendors)?void 0:t.iab;if(!d)return[];var c,p,v=[];(Array.isArray(d)&&(v=d),d===Object(d)&&d.all)?v.push(...null==(c=o.A.value)||null==(p=c.vendors)?void 0:p.map(e=>e.id)):d.include&&Array.isArray(d.include)&&v.push(...d.include);d.exclude&&Array.isArray(d.exclude)&&(v=v.filter(e=>!d.exclude.includes(e)));var h=null==(n=d.include)?void 0:n.includes(a.le.google),f=null==(s=d.exclude)?void 0:s.includes(a.le.google),g=u.D.value.includes("google");return v=v.map(e=>{var t,n;return null==(t=i.o.value)||null==(n=t[e])?void 0:n.id}).filter(Boolean),l.s.value&&(v=v.filter(e=>{var t,n;return!(null!=(t=i.o.value)&&null!=(n=t[e])&&n.tmpDeletedDate)||e===a.le.google})),(d.all||h||g)&&!f&&v.push("google"),v})},84207:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var s=n(87127),r=n(19621);class i{constructor(){this.tC=new r.Wrapper("tC.event",["tC.domReady",["tC.event.didomiConsent","tC.event.didomiReady","tC.event.didomiConsentChanged"]])}setupCookies(e){var t=null==e?void 0:e.join(",");(0,s.Ri)("didomi_cookies")!==t&&(0,s.TV)("didomi_cookies",t,365)}update(e){var{type:t="didomi-consent-changed",customVariables:n={},allowedCategories:s}=e;this.setupCookies(s),this.tC.call("didomiConsent",{},n),"didomi-ready"===t?this.tC.call("didomiReady",{},n):this.tC.call("didomiConsentChanged",{},n)}}},85914:function(e,t,n){var s;e=n.nmd(e),function(){var r=t,i=(e&&e.exports,"object"==typeof n.g&&n.g);i.global!==i&&i.window;var o=function(e){this.message=e};(o.prototype=new Error).name="InvalidCharacterError";var a=function(e){throw new o(e)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,s,r,i=e.length%3,o="",l=-1,d=e.length-i;++l>18&63)+u.charAt(r>>12&63)+u.charAt(r>>6&63)+u.charAt(63&r);return 2==i?(t=e.charCodeAt(l)<<8,n=e.charCodeAt(++l),o+=u.charAt((r=t+n)>>10)+u.charAt(r>>4&63)+u.charAt(r<<2&63)+"="):1==i&&(r=e.charCodeAt(l),o+=u.charAt(r>>2)+u.charAt(r<<4&63)+"=="),o},decode:function(e){var t=(e=String(e).replace(l,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var n,s,r=0,i="",o=-1;++o>(-2*r&6)));return i},version:"0.1.0"};void 0===(s=function(){return d}.call(t,n,t,e))||(e.exports=s)}()},86784:function(e,t,n){"use strict";n.d(t,{S:function(){return c}});var s={};n.r(s),n.d(s,{iabFeatures:function(){return l},iabSpecialPurposes:function(){return u},iabStacks:function(){return d},purposes:function(){return o},specialFeatures:function(){return a}});var r=n(34576),i=JSON.parse('{"mP":[{"id":1,"name":"purpose_1_name","description":"purpose_1_description","illustrations":["purpose_1_illustrations_0"]},{"id":2,"name":"purpose_2_name","description":"purpose_2_description","illustrations":["purpose_2_illustrations_0","purpose_2_illustrations_1"]},{"id":3,"name":"purpose_3_name","description":"purpose_3_description","illustrations":["purpose_3_illustrations_0","purpose_3_illustrations_1"]},{"id":4,"name":"purpose_4_name","description":"purpose_4_description","illustrations":["purpose_4_illustrations_0","purpose_4_illustrations_1"]},{"id":5,"name":"purpose_5_name","description":"purpose_5_description","illustrations":["purpose_5_illustrations_0","purpose_5_illustrations_1"]},{"id":6,"name":"purpose_6_name","description":"purpose_6_description","illustrations":["purpose_6_illustrations_0","purpose_6_illustrations_1"]},{"id":7,"name":"purpose_7_name","description":"purpose_7_description","illustrations":["purpose_7_illustrations_0","purpose_7_illustrations_1"]},{"id":8,"name":"purpose_8_name","description":"purpose_8_description","illustrations":["purpose_8_illustrations_0","purpose_8_illustrations_1"]},{"id":9,"name":"purpose_9_name","description":"purpose_9_description","illustrations":["purpose_9_illustrations_0","purpose_9_illustrations_1"]},{"id":10,"name":"purpose_10_name","description":"purpose_10_description","illustrations":["purpose_10_illustrations_0","purpose_10_illustrations_1"]},{"id":11,"name":"purpose_11_name","description":"purpose_11_description","illustrations":["purpose_11_illustrations_0","purpose_11_illustrations_1"]}],"P2":[{"id":1,"name":"special_purpose_1_name","description":"special_purpose_1_description","illustrations":["special_purpose_1_illustrations_0"]},{"id":2,"name":"special_purpose_2_name","description":"special_purpose_2_description","illustrations":["special_purpose_2_illustrations_0"]},{"id":3,"name":"special_purpose_3_name","description":"special_purpose_3_description","illustrations":["special_purpose_3_illustrations_0"]}],"qT":[{"id":1,"name":"feature_1_name","description":"feature_1_description","illustrations":[]},{"id":2,"name":"feature_2_name","description":"feature_2_description","illustrations":[]},{"id":3,"name":"feature_3_name","description":"feature_3_description","illustrations":[]}],"nK":[{"id":1,"name":"special_feature_1_name","description":"special_feature_1_description","illustrations":[]},{"id":2,"name":"special_feature_2_name","description":"special_feature_2_description","illustrations":[]}],"I3":[{"id":1,"name":"stack_1_name","description":"stack_1_description"},{"id":2,"name":"stack_2_name","description":"stack_2_description"},{"id":3,"name":"stack_3_name","description":"stack_3_description"},{"id":4,"name":"stack_4_name","description":"stack_4_description"},{"id":5,"name":"stack_5_name","description":"stack_5_description"},{"id":6,"name":"stack_6_name","description":"stack_6_description"},{"id":7,"name":"stack_7_name","description":"stack_7_description"},{"id":8,"name":"stack_8_name","description":"stack_8_description"},{"id":9,"name":"stack_9_name","description":"stack_9_description"},{"id":10,"name":"stack_10_name","description":"stack_10_description"},{"id":11,"name":"stack_11_name","description":"stack_11_description"},{"id":12,"name":"stack_12_name","description":"stack_12_description"},{"id":13,"name":"stack_13_name","description":"stack_13_description"},{"id":14,"name":"stack_14_name","description":"stack_14_description"},{"id":15,"name":"stack_15_name","description":"stack_15_description"},{"id":16,"name":"stack_16_name","description":"stack_16_description"},{"id":17,"name":"stack_17_name","description":"stack_17_description"},{"id":18,"name":"stack_18_name","description":"stack_18_description"},{"id":19,"name":"stack_19_name","description":"stack_19_description"},{"id":20,"name":"stack_20_name","description":"stack_20_description"},{"id":21,"name":"stack_21_name","description":"stack_21_description"},{"id":22,"name":"stack_22_name","description":"stack_22_description"},{"id":23,"name":"stack_23_name","description":"stack_23_description"},{"id":24,"name":"stack_24_name","description":"stack_24_description"},{"id":25,"name":"stack_25_name","description":"stack_25_description"},{"id":26,"name":"stack_26_name","description":"stack_26_description"},{"id":27,"name":"stack_27_name","description":"stack_27_description"},{"id":28,"name":"stack_28_name","description":"stack_28_description"},{"id":29,"name":"stack_29_name","description":"stack_29_description"},{"id":30,"name":"stack_30_name","description":"stack_30_description"},{"id":31,"name":"stack_31_name","description":"stack_31_description"},{"id":32,"name":"stack_32_name","description":"stack_32_description"},{"id":33,"name":"stack_33_name","description":"stack_33_description"},{"id":34,"name":"stack_34_name","description":"stack_34_description"},{"id":35,"name":"stack_35_name","description":"stack_35_description"},{"id":36,"name":"stack_36_name","description":"stack_36_description"},{"id":37,"name":"stack_37_name","description":"stack_37_description"},{"id":38,"name":"stack_38_name","description":"stack_38_description"},{"id":39,"name":"stack_39_name","description":"stack_39_description"},{"id":40,"name":"stack_40_name","description":"stack_40_description"},{"id":41,"name":"stack_41_name","description":"stack_41_description"},{"id":42,"name":"stack_42_name","description":"stack_42_description"},{"id":43,"name":"stack_43_name","description":"stack_43_description"},{"id":44,"name":"stack_44_name","description":"stack_44_description"},{"id":45,"name":"stack_45_name","description":"stack_45_description"}]}'),{mP:o,nK:a,P2:u,qT:l,I3:d}=i,c=(0,r.vP)(s)},86923:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var s=n(34576),r=n(20152),i=(0,s.EW)(()=>{var e,t,n;return!1!==(null==(e=r.U.value)||null==(t=e.vendors)||null==(n=t.iab)?void 0:n.enabled)})},87127:function(e,t,n){"use strict";function s(e){if(e){var t=("; "+document.cookie).split("; "+e+"=");return 2!==t.length?void 0:t.pop().split(";").shift()}}n.d(t,{H3:function(){return c},Ri:function(){return s},Sd:function(){return l},TV:function(){return a},Yj:function(){return u},dD:function(){return p},kz:function(){return d},yE:function(){return v},zd:function(){return o}});var r="ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|be|bf|bg|bh|bi|bj|bm|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|cl|cm|cn|co|cr|cu|cv|cw|cx|cz|de|dj|dk|dm|do|dz|ec|ee|eg|es|et|eu|fi|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|im|in|io|iq|ir|is|it|je|jo|jp|kg|ki|km|kn|kp|kr|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|na|nc|ne|nf|ng|nl|no|nr|nu|nz|om|pa|pe|pf|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|yt".split("|"),i="co|com|edu|gov|net|mil|org|nom|sch|caa|res|off|gob|int|tur|ip6|uri|urn|asn|act|nsw|qld|tas|vic|pro|biz|adm|adv|agr|arq|art|ato|bio|bmd|cim|cng|cnt|ecn|eco|emp|eng|esp|etc|eti|far|fnd|fot|fst|g12|ggf|imb|ind|inf|jor|jus|leg|lel|mat|med|mus|not|ntr|odo|ppg|psc|psi|qsl|rec|slg|srv|teo|tmp|trd|vet|zlg|web|ltd|sld|pol|fin|k12|lib|pri|aip|fie|eun|sci|prd|cci|pvt|mod|idv|rel|sex|gen|nic|abr|bas|cal|cam|emr|fvg|laz|lig|lom|mar|mol|pmn|pug|sar|sic|taa|tos|umb|vao|vda|ven|mie|北海道|和歌山|神奈川|鹿児島|ass|rep|tra|per|ngo|soc|grp|plc|its|air|and|bus|can|ddr|jfk|mad|nrw|nyc|ski|spy|tcm|ulm|usa|war|fhs|vgs|dep|eid|fet|fla|flå|gol|hof|hol|sel|vik|cri|iwi|ing|abo|fam|gok|gon|gop|gos|aid|atm|gsm|sos|elk|waw|est|aca|bar|cpa|jur|law|sec|plo|www|bir|cbg|jar|khv|msk|nov|nsk|ptz|rnd|spb|stv|tom|tsk|udm|vrn|cmw|kms|nkz|snz|pub|fhv|red|ens|nat|rns|rnu|bbs|tel|bel|kep|nhs|dni|fed|isa|nsn|gub|e12|tec|орг|обр|упр|alt|nis|jpn|mex|ath|iki|nid|gda|inc|ab|bc|mb|nb|nf|nl|ns|nt|nu|on|pe|qc|sk|yk".split("|");function o(e){for(var t=(e=e.replace(/^www\./,"")).split(".");t.length>3;)t.shift();return 3===t.length&&(t[1].length>2&&t[2].length>2||-1===i.indexOf(t[1])||t[1].length>3&&-1!==r.indexOf(t[2]))&&t.shift(),t.join(".")}function a(e,t,n,s,r,i,o){var a=new Date;a.setDate(a.getDate()+(n||365));var u=[e+"="+t,"expires="+a.toUTCString(),"path="+(o||"/")];s&&u.push("domain="+s),r&&u.push("SameSite="+r),!0===i&&"https:"===location.protocol&&u.push("Secure"),document.cookie=u.join(";")}function u(e,t,n,s,r){void 0===s&&(s=!1);var i=[e+"=","expires=Thu, 01 Jan 1970 00:00:01 GMT","path="+(n||"/")];t&&i.push("domain="+t),!0===s&&i.push("Secure"),r&&i.push("SameSite="+r),document.cookie=i.join(";")}function l(e){return null==e?void 0:e.split(".")[0]}function d(e){var t=null==e?void 0:e.split(".")[2];return t&&(t=t.split("~")[0]),t}function c(e){return null==e?void 0:e.split(".")[1]}function p(e){return null==e?void 0:e.split("~")[1]}function v(e){var t=null==e?void 0:e.split(".")[3];if(t){var n=parseInt(t.split("~")[0],10);if(n)return new Date(n).toISOString()}return null}},87931:function(e,t,n){"use strict";n.r(t),n.d(t,{loadProviderModule:function(){return s}});var s=(e,t)=>n(23410)("./"+e+"/"+e+".js").then(n=>{var s=new n.default(t);return n&&"function"==typeof s.update?s:(console.error("Module for provider "+e+" does not have an update function."),null)}).catch(t=>(console.error("Failed to load tag manager for provider "+e+":",t),null))},88517:function(e,t,n){"use strict";n.d(t,{C:function(){return r},J:function(){return s}});var s=(0,n(34576).vP)(null),r=e=>{s.value=e}},90013:function(e,t,n){"use strict";n.d(t,{B:function(){return r},I:function(){return s}});var s=(0,n(34576).vP)(!1),r=e=>s.value=e},91083:function(e){function t(e,n){return e||(e=this instanceof t?this:{}),function(n,s){return Object.defineProperties(e,{setMaxListeners:{value:function(t){return s.maxListeners=t,e}},maxListeners:{get:function(){return void 0===s.maxListeners?t.defaultMaxListeners:s.maxListeners}},setLogger:{value:function(t){return s.logger=t,e}},logger:{get:function(){return void 0===s.logger?t.logger:s.logger}},emit:{value:r},on:{value:i},once:{value:function(t,n){return n._once=1,e.on(t,n)}},off:{value:o},addListener:{value:i},removeListener:{value:o},removeAllListeners:{value:o},listeners:{value:function(e){return n[e]?n[e].slice():[]}},listenerTypes:{value:a},listenerCount:{value:function e(t){if(!t){var s=0;return a().forEach(function(t){s+=e(t)}),s}if("object"==typeof t&&t.length)return a().map(function(t){return e(t)});return n[t]&&n[t].length||0}}});function r(t){var s,r;if(!("error"!==t||n.error&&n.error.length))throw arguments[1]instanceof Error?r=arguments[1]:(r=new Error("Unhandled error event: "+arguments[1])).context=arguments[1],r;return!!n[t]&&(s=Array.prototype.slice.call(arguments,1),n[t].slice().forEach(function(n){n._once&&1!==n._once||(n._once++,n.apply(e,s)),n._once&&o(t,n)}),e)}function i(t,s){if(n.newListener&&e.emit("newListener",t,s),n[t]=n[t]||[],n[t].push(s),!n[t].warned){var r=e.maxListeners;r&&r>0&&n[t].length>r&&(n[t].warned=!0,e.logger.warn("Possible EventEmitter memory leak detected for '%s' event. %d listeners added. Use emitter.setMaxListeners() to increase limit.",t,n[t].length),e.logger.trace&&e.logger.trace())}return e}function o(t,s){if(!s&&!n.removeListener)return t?n[t]&&delete n[t]:n={},e;if(!t){for(var i in n)"removeListener"!=i&&o(i);return o("removeListener"),n={},e}if(!n[t])return e;if(!s){for(;n[t].length;)o(t,n[t][n[t].length-1]);return delete n[t],e}var a=n[t].indexOf(s);return a<0||(n[t].splice(a,1),n.removeListener&&r("removeListener",t,s)),e}function a(){return Object.keys(n)}}({},{logger:n&&n.logger,maxListeners:n&&n.maxListeners})}t.EventEmitter=t,t.defaultMaxListeners=10,t.logger="object"==typeof console&&console||{warn:function(){}},t.setLogger=function(e){t.logger=e},e.exports=t},91888:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var s=n(49049),r=n(34576),i=n(2073),o=(0,r.EW)(()=>{var e,t,n;if(null==(e=i.R.value)||!e.length||null==(t=s.l.value)||!t.length)return[];return null==(n=s.l.value)?void 0:n.filter(e=>{var{id:t}=e;return i.R.value.includes(t)})})},91963:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var s=n(34576),r=n(4640),i=n(12321),o=(0,s.EW)(()=>{var e,t=null==i.G||null==(e=i.G.value)?void 0:e.bots;return!!t&&(!1===t.consentRequired&&r.w.value)})},92920:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var s=n(58168),r=n(20152),i=n(73412),o=(0,n(34576).EW)(()=>{var e,t,n=e=>{var t;return!(null==(t=i.m.value)||!t[e])},o=null==(e=r.U.value)||null==(t=e.vendors)?void 0:t.custom,a=[];if(o&&Array.isArray(o))for(var u of o){var l=(u.purposeIds||[]).filter(n),d=(u.legIntPurposeIds||[]).filter(n);(l.length>0||d.length>0)&&a.push((0,s.A)({},u,{purposeIds:l,legIntPurposeIds:d,id:"c:"+u.id,namespace:"custom",didomiId:""+u.id}))}return a})},94382:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var s=n(76638),r=e=>{var t=new s.Mi;return t.set(e.filter(e=>e)),s.XK.encode(s.sH.encode(t))}},95236:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var s=n(34576),r=n(77396),i=n(92920),o=(0,s.EW)(()=>{var e;return(null==(e=i.$.value)?void 0:e.reduce((e,t)=>{var{id:n,purposeIds:s}=t;return s.length>0&&s.every(e=>r.T.value.includes(e))&&e.push(n),e},[]))||[]})},96700:function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,n=1,s=arguments.length;n[...new Set(e)],r=e=>{if(0!==e.length){var[t,...n]=e;return n.every(e=>e===t)?t:null}}},97531:function(e,t,n){"use strict";n.d(t,{E:function(){return o}});var s=n(34576),r=n(66559),i=n(50378),o=(0,s.EW)(()=>(0,i.zu)(r.o.value)||[])},98074:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var s=n(20152),r=(0,n(34576).EW)(()=>{var e;return(null==(e=s.U.value)?void 0:e.disabledPurposes)||[]})},98516:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var s=n(34576),r=n(77396),i=n(92920),o=(0,s.EW)(()=>{var e;return(null==(e=i.$.value)?void 0:e.reduce((e,t)=>{var{id:n,legIntPurposeIds:s}=t;return s.length>0&&s.every(e=>r.T.value.includes(e))&&e.push(n),e},[]))||[]})},98587:function(e,t,n){"use strict";function s(e,t){if(null==e)return{};var n,s,r={},i=Object.keys(e);for(s=0;s=0||(r[n]=e[n]);return r}n.d(t,{A:function(){return s}})},98957:function(e,t,n){"use strict";n.d(t,{Y:function(){return r},h:function(){return s}});var s=(0,n(34576).vP)(null),r=e=>{s.value=e}},99124:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var s=n(9757),r=function(e,t,n,r,i){void 0===i&&(i=!1);var o=((e,t)=>"string"!=typeof e?t?(0,s.PL)(e):(0,s.KX)(e):e)(e,i),a=r.filter(((e,t)=>n=>n.purposeId===e&&n.vendors.includes(t))(o,t));return a.some(e=>["disallow","allow",n].includes(e.restrictionType))}}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=r,o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,s){if(1&s&&(n=this(n)),8&s)return n;if("object"==typeof n&&n){if(4&s&&n.__esModule)return n;if(16&s&&"function"==typeof n.then)return n}var r=Object.create(null);o.r(r);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&s&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(function(e){i[e]=function(){return n[e]}});return i.default=function(){return n},o.d(r,i),r},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce(function(t,n){return o.f[n](e,t),t},[]))},o.u=function(e){return e+".d4ee574ce72cb26fbe235eac540be8dbf938e9c2.js"},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},s="Didomi:",o.l=function(e,t,r,i){if(n[e])n[e].push(t);else{var a,u;if(void 0!==r)for(var l=document.getElementsByTagName("script"),d=0;d{var n=(0,g.$)([...e,...t,...I.T.value]),s=A.t.value.purposeIds.filter(e=>-1===n.indexOf(e));return{enabled:n,disabled:s}}),L=(0,f.Mz)([P,function(){var e,t;return(null==(e=C.II.value)||null==(t=e.vendors)?void 0:t.disabled)||[]},function(){var e,t;return(null==(e=C.II.value)||null==(t=e.vendors_li)?void 0:t.enabled)||[]},function(){var e,t;return(null==(e=C.II.value)||null==(t=e.vendors_li)?void 0:t.disabled)||[]}],(e,t,n,s)=>(0,g.$)([...e,...t,...n,...s,...b.R.value])),T=(0,f.Mz)([_,P,L],(e,t,n)=>{var s=t.filter(t=>{var n;return!(null==(n=m.o.value)||!n[t])&&(0,y.Z)(m.o.value[t].purposeIds,[...e,...I.T.value])}),r=n.filter(e=>-1===s.indexOf(e));return{enabled:s,disabled:r}}),D=(0,f.Mz)([E,O,L],(e,t,n)=>{var s=t.filter(t=>{var n;return!(null==(n=m.o.value)||!n[t])&&(0,y.Z)((0,l.gi)(m.o.value[t].legIntPurposeIds),[...e,...I.T.value])}),r=n.filter(e=>-1===s.indexOf(e));return{enabled:s,disabled:r}}),U=(0,f.Mz)([_,E,P,O,L],(e,t,n,s,r)=>{var i=(0,g.$)([...n,...s]).filter(n=>{var s;if(null!=(s=m.o.value)&&s[n]){var r=[...(0,l.gi)(m.o.value[n].purposeIds),...(0,l.gi)(m.o.value[n].legIntPurposeIds)],i=[...e,...t,...I.T.value];return(0,y.Z)(r,i)}return!1}),o=r.filter(e=>-1===i.indexOf(e));return{enabled:i,disabled:o}}),R=(0,f.Mz)([()=>C.II.value,()=>S.M.value,()=>w.J.value,k,U,T,D],(e,t,n,s,r,i,o)=>({purposes:{consent:{enabled:(0,l.Jt)(e,"purposes.enabled"),disabled:(0,l.Jt)(e,"purposes.disabled")},legitimate_interest:{enabled:(0,l.Jt)(e,"purposes_li.enabled"),disabled:(0,l.Jt)(e,"purposes_li.disabled")},global:s,essential:I.T.value},vendors:{consent:{enabled:(0,l.Jt)(e,"vendors.enabled"),disabled:(0,l.Jt)(e,"vendors.disabled")},legitimate_interest:{enabled:(0,l.Jt)(e,"vendors_li.enabled"),disabled:(0,l.Jt)(e,"vendors_li.disabled")},global:r,global_consent:i,global_li:o},user_id:e.user_id,created:e.created,updated:e.updated,consent_string:t,addtl_consent:n})),B=o(68307),V=o(34576),N=(0,V.EW)(()=>{var e,t=null==(e=n.bK.value)?void 0:e.hooks;return t&&"object"==typeof t.functions?t.functions:null}),x=function(e,t){return void 0===t&&(t=void 0),N.value&&N.value[e]&&"function"==typeof N.value[e]?N.value[e]:t},M=o(25159),F=o(12321),z=o(50010),j=o(24746),W=o(52477),G=(0,V.EW)(()=>{var e,t;return!!(null!=(e=F.G.value)&&e.ignoreConsentBefore&&F.G.value.ignoreConsentBefore{if(!K.value.has(e)){var t=new Set(K.value);t.add(e),K.value=t}},Z=o(39015),Y=(0,V.EW)(()=>(0,Z.CWTFromCompressedJSON)(JSON.stringify(C.II.value))),$=o(14004),Q=(e,t)=>{if(!$.y.value)return!0;var n=t.byLegalBasis.consent.purposesById[e];return void 0!==n?n:!0===t.byLegalBasis.consent.purposesById.cookies},X=(0,V.EW)(()=>{var e=["essential"];return Q("cookies_analytics",q.a.value)&&e.push("analytics"),Q("cookies_marketing",q.a.value)&&e.push("marketing"),Q("cookies_social",q.a.value)&&e.push("social"),e}),ee=()=>{(0,B.Ic)("cookies.enable",X.value)},te=o(76406),ne=o(73996);class se extends v.A{getUserConsentStatusForAllPurposesByVendor(e){e=parseInt(e,10)||e;var t=(0,l.Jt)(this.store.getState(),"consentByVendor."+e+".consentToAllPurposes");if("boolean"==typeof t)return t}getObservableOnUserConsentStatusForAllPurposesByVendor(e){var t=new p(null,this.getUserConsentStatusForAllPurposesByVendor(e)),n=(0,B.ew)();return n>=(0,B.mW)()&&(0,B.kj)(n+1),(0,B.on)("internal.consent.changed",()=>{t.next(this.getUserConsentStatusForAllPurposesByVendor(e))}),t.distinctUntilChanged()}getUserStatusForVendor(e){var t,s=null==(t=m.o.value)?void 0:t[e];if(s){var r,i,o,a=!0,u=!0;return Array.isArray(s.legIntPurposeIds)&&s.legIntPurposeIds.length>0&&(a=q.a.value.byLegalBasis.li.vendorsById[s.id]),Array.isArray(s.purposeIds)&&s.purposeIds.length>0&&(u=q.a.value.byLegalBasis.consent.vendorsById[e]),"1.0.0"===(null==(r=n.bK.value)?void 0:r.version)&&"mixed"===(null==(i=J.r.value)||null==(o=i.group)?void 0:o.name)?a:a&&u}}getUserStatusForVendorAndLinkedPurposes(e){var t,n,s,r,i,o,a,u,l,d,c,p,v,h,f,g,b,I=null==(t=m.o.value)?void 0:t[e],y=x("isVendorEnabled");if(y)return y({vendor:I,enabledPurposes:null==(n=C.II.value)||null==(s=n.purposes)?void 0:s.enabled,disabledPurposes:null==(r=C.II.value)||null==(i=r.purposes)?void 0:i.disabled,enabledLIPurposes:null==(o=C.II.value)||null==(a=o.purposes_li)?void 0:a.enabled,disabledLIPurposes:null==(u=C.II.value)||null==(l=u.purposes_li)?void 0:l.disabled,enabledVendors:null==(d=C.II.value)||null==(c=d.vendors)?void 0:c.enabled,disabledVendors:null==(p=C.II.value)||null==(v=p.vendors)?void 0:v.disabled,enabledLIVendors:null==(h=C.II.value)||null==(f=h.vendors_li)?void 0:f.enabled,disabledLIVendors:null==(g=C.II.value)||null==(b=g.vendors_li)?void 0:b.disabled});if(I){var S=!0,w=!0;return Array.isArray(I.legIntPurposeIds)&&I.legIntPurposeIds.length>0&&(S=I.legIntPurposeIds.reduce((e,t)=>!1===e?e:q.a.value.byLegalBasis.li.purposesById[t],!0)),Array.isArray(I.purposeIds)&&I.purposeIds.length>0&&(w=I.purposeIds.reduce((e,t)=>!1===e?e:q.a.value.byLegalBasis.consent.purposesById[t],!0)),this.getUserStatusForVendor(e)&&S&&w}}getUndefinedPurposes(){var e,t,n,s,r=[...null==(e=C.II.value)||null==(t=e.purposes)?void 0:t.enabled,...null==(n=C.II.value)||null==(s=n.purposes)?void 0:s.disabled];return A.t.value.purposeIdsBasedOnConsent.filter(e=>-1===r.indexOf(e))}setUserConsentStatusDeprecated(e,t,n){t=Array.isArray(t)?t:[t],n=Array.isArray(n)?n:[n];var s=new d.A(this.getUserStatus.bind(this),this.setUserStatus.bind(this));!0===e?(s.enablePurposes(...t),s.enableVendors(...n)):(s.enablePurposes(...this.getUndefinedPurposes()),s.disableVendors(...n)),s.commit(),this.services.NoticeService.hide()}setUserConsentStatus(e,n,s,r,i,o,a,u,d,c,p){void 0===e&&(e=[]),void 0===n&&(n=[]),void 0===s&&(s=[]),void 0===r&&(r=[]),void 0===i&&(i=[]),void 0===o&&(o=[]),void 0===a&&(a=[]),void 0===u&&(u=[]),e=Array.isArray(e)?e:[e],n=Array.isArray(n)?n:[n],s=Array.isArray(s)?(0,g.$)([...s,...ne.q.value.optInEssentialPurposesOperatorIds]):(0,g.$)([s,...ne.q.value.optInEssentialPurposesOperatorIds]),a=Array.isArray(a)?(0,g.$)([...a,...ne.q.value.optOutEssentialPurposesOperatorIds]):(0,g.$)([a,...ne.q.value.optOutEssentialPurposesOperatorIds]),r=(r=Array.isArray(r)?r:[r]).filter(e=>!ne.q.value.optInEssentialPurposesOperatorIds.includes(e)),s=s.filter(e=>{var t,n=null==(t=m.o.value)?void 0:t[e];return!n||n.purposeIds.length>0});var v=C.II.value,h=I.T.value,f=e=>-1===h.indexOf(e),b=(0,t.A)({},v,{vendors:{enabled:s,disabled:r},purposes:{enabled:e.filter(f),disabled:n.filter(f)},version:M.a.defaultTCFVersion,vendors_li:{enabled:a,disabled:u.filter(e=>!ne.q.value.optOutEssentialPurposesOperatorIds.includes(e))},purposes_li:{enabled:i.filter(f),disabled:o.filter(f)}},d&&{created:d},c&&{updated:c}),y=!!d||!!c;(y||G.value||!(0,l.bD)(v,b))&&(this.actions.dropSignature(),b=this.services.StorageService.setTokenToStorages(b,!y),this.sendEvents(b,!1,p)),this.removeScrollListener(window.scrollListener)}sendEvents(e,t,n){void 0===t&&(t=!1);var{purposes:s,purposes_li:r,vendors:i,vendors_li:o,created:a,updated:u,dns:l}=e;"sync"!==n&&this.services.EventsService.sendConsentGiven({purposes:s,vendors:i,created:a,updated:u,dns:!0===l||void 0,from_euconsent:t,action:"string"==typeof n?n:void 0,purposes_li:r,vendors_li:o},"navigate"===n),(0,B.Ic)("internal.consent.changed"),(0,B.Ic)("consent.changed",{get consentToken(){return H("consent-web-token"),Y.value},fromEUConsent:t,action:n}),this.setBrowserCookieState(e.purposes.enabled)}removeScrollListener(e){"function"==typeof e&&-1!==String(e).indexOf("Didomi.setUserAgreeToAll()")&&window.removeEventListener("scroll",e)}setBrowserCookieState(e){e.some(e=>0===e.indexOf("cookies"))&&ee()}getUserStatus(){var e;return"none"===(null==(e=J.r.value)?void 0:e.name)?(0,l.Go)(this.getUserStatusForNoneRegulation()):(0,l.Go)(R(this.store.getState()))}getUserStatusForNoneRegulation(){var e,t,n,s=A.t.value.purposeIds;return{purposes:{consent:{enabled:A.t.value.purposeIdsBasedOnConsent,disabled:[]},legitimate_interest:{enabled:A.t.value.purposeIdsBasedOnLI,disabled:[]},global:s,essential:I.T.value},vendors:{consent:{enabled:te.H.value.operatorIdsWithAtLeastOneOptinPurpose,disabled:[]},legitimate_interest:{enabled:te.H.value.operatorIdsWithAtLeastOneOptoutPurpose,disabled:[]},global:b.R.value,global_consent:te.H.value.operatorIdsWithAtLeastOneOptinPurpose,global_li:te.H.value.operatorIdsWithAtLeastOneOptoutPurpose},user_id:null==(e=C.II.value)?void 0:e.user_id,created:null==(t=C.II.value)?void 0:t.created,updated:null==(n=C.II.value)?void 0:n.updated,consent_string:S.M.value,addtl_consent:w.J.value}}setCurrentUserStatus(e){var t,n=null==(t=J.r.value)?void 0:t.name,s=(0,l.Go)(C.II.value);if("none"===n)return!1;var r=A.t.value.purposeIdsBasedOnLI,i=A.t.value.purposeIdsBasedOnConsent,o=I.T.value,a=z.C.value,u={};for(var d of Object.keys(a))u[a[d]]=d;var c=te.H.value.operatorIdsWithAtLeastOneOptoutPurpose,p=te.H.value.operatorIdsWithAtLeastOneOptinPurpose;if(!(0,j.q7)(e.vendors,b.R.value,u))return!1;if(!(0,j.q7)(e.purposes,[...i,...r,...o]))return!1;var v=(0,j.jh)({globalUserStatus:e.vendors,includeIds:p,reversedIdsToDidomiIdsMap:u}),h=(0,j.jh)({globalUserStatus:e.vendors,includeIds:c,reversedIdsToDidomiIdsMap:u}),f=(0,j.jh)({globalUserStatus:e.purposes,includeIds:i,parseNumIds:!1}),g=(0,j.jh)({globalUserStatus:e.purposes,includeIds:r,parseNumIds:!1}),m=s.created,y=(new Date).toISOString(),S=e.action||"external";return this.setUserConsentStatus(f.enabled,f.disabled,v.enabled,v.disabled,g.enabled,g.disabled,h.enabled,h.disabled,m,y,S),this.services.WebsiteService.shouldConsentBeCollected()||this.services.NoticeService.hide(),(0,j.y3)(C.II.value,s)}setUserStatusForAll(e){var{purposesConsentStatus:t,purposesLIStatus:n,vendorsConsentStatus:s,vendorsLIStatus:r,created:i,updated:o,action:a}=e,u=I.T.value,d=A.t.value.purposeIdsBasedOnConsent||[],c=A.t.value.purposeIdsBasedOnLI,p=b.R.value;if(0!==[...d,...te.H.value.operatorIdsWithAtLeastOneOptoutPurpose].length&&0!==p.length||0!==u.length){var v={};t?((0,l.hZ)(v,"purposes.consent.enabled",d),(0,l.hZ)(v,"purposes.consent.disabled",[])):((0,l.hZ)(v,"purposes.consent.enabled",[]),(0,l.hZ)(v,"purposes.consent.disabled",d)),n?((0,l.hZ)(v,"purposes.legitimate_interest.enabled",c),(0,l.hZ)(v,"purposes.legitimate_interest.disabled",[])):((0,l.hZ)(v,"purposes.legitimate_interest.enabled",[]),(0,l.hZ)(v,"purposes.legitimate_interest.disabled",c)),s?((0,l.hZ)(v,"vendors.consent.enabled",p),(0,l.hZ)(v,"vendors.consent.disabled",[])):((0,l.hZ)(v,"vendors.consent.enabled",[]),(0,l.hZ)(v,"vendors.consent.disabled",p)),r?((0,l.hZ)(v,"vendors.legitimate_interest.enabled",te.H.value.operatorIdsWithAtLeastOneOptoutPurpose),(0,l.hZ)(v,"vendors.legitimate_interest.disabled",[])):((0,l.hZ)(v,"vendors.legitimate_interest.enabled",[]),(0,l.hZ)(v,"vendors.legitimate_interest.disabled",te.H.value.operatorIdsWithAtLeastOneOptoutPurpose)),(0,l.hZ)(v,"created",i),(0,l.hZ)(v,"updated",o),(0,l.hZ)(v,"action",a),this.setUserStatus(v)}}setUserStatus(e){this.setUserConsentStatus((0,l.Jt)(e,"purposes.consent.enabled",[]),(0,l.Jt)(e,"purposes.consent.disabled",[]),(0,l.Jt)(e,"vendors.consent.enabled",[]),(0,l.Jt)(e,"vendors.consent.disabled",[]),(0,l.Jt)(e,"purposes.legitimate_interest.enabled",[]),(0,l.Jt)(e,"purposes.legitimate_interest.disabled",[]),(0,l.Jt)(e,"vendors.legitimate_interest.enabled",[]),(0,l.Jt)(e,"vendors.legitimate_interest.disabled",[]),(0,l.Jt)(e,"created"),(0,l.Jt)(e,"updated"),(0,l.Jt)(e,"action","external")),this.services.WebsiteService.shouldConsentBeCollected()||this.services.NoticeService.hide()}loadExternalConsent(){var e=F.G.value.externalConsent;if(e.enabled&&e.value&&"object"==typeof e.value){var t=e.value;if(null!=t&&t.purposes||null!=t&&t.vendors)this.setUserStatus(t);else{var{disabledPurposes:n,disabledVendors:s,enabledPurposes:r,enabledVendors:i,enabledPurposesLegitimateInterests:o,disabledPurposesLegitimateInterests:a,enabledVendorsLegitimateInterests:u,disabledVendorsLegitimateInterests:l,action:d}=t;this.setUserConsentStatus(r,n,i,s,o,a,u,l,void 0,void 0,d)}}}}se.Purposes=h.eL,se.prototype.Purposes=h.eL;var re=o(34905),ie=o(58623),oe=(0,V.EW)(()=>{var e,t,r,i,o,a={sampleSizes:{},template:{source:{type:"sdk-web",domain:location.host},user:{agent:navigator.userAgent,id_type:"uuid",regs:[]}}},u=null==(e=n.bK.value)?void 0:e.events;null!=u&&u.source&&("string"==typeof u.source.type&&(a.template.source.type=u.source.type),"string"==typeof u.source.domain&&(a.template.source.domain=u.source.domain)),!1===(null==u?void 0:u.enabled)&&(a.muteAPIEvents=!0);var l=(null==(t=s.b.value)||null==(r=t.events)?void 0:r.sampleSizes)||{};for(var d of Object.keys(l))null!=u&&u.sampleSizes&&"number"==typeof u.sampleSizes[d]?a.sampleSizes[d]=u.sampleSizes[d]:a.sampleSizes[d]=l[d];if("mixed"===(null==(i=J.r.value)||null==(o=i.group)?void 0:o.name)){var c={type:ie.x.value.isSupportedByBrowser?"gpc":"none"};ie.x.value.isEnabled&&(c.notice_action=ie.x.value.shouldShowNotice?"shown":"hidden",c.status=ie.x.value.isUserOptedOut),a.template.source.privacy_control=c}return a}),ae=(0,f.Mz)(e=>{var t;return null==(t=e.website)?void 0:t.customDomain},()=>{var e,t,n;return null==(e=oe.value)||null==(t=e.template)||null==(n=t.source)?void 0:n.domain},(e,t)=>e||t||location.host||"com.app.generic"),ue=o(24408),le=o(98957),de=o(35094),ce=o(18557),pe=o(15560),ve=o(86923),he=o(20152),fe=(0,V.EW)(()=>{var e,t=null==(e=he.U.value)?void 0:e.providerKey;if(t)return t;var n=document.getElementById("spcloader");if(n&&n.getAttribute){var s=n.getAttribute("data-provider");if("string"==typeof s&&s.length>0)return s}}),ge=(0,V.EW)(()=>{var e,s,r,i=null==(e=n.bK.value)?void 0:e.experiment;if(!i)return null;var o=i&&i.id&&i.config,a=i&&"number"==typeof i.size&&i.size>=0&&i.size<=1,u=!1;if(i&&(i.group&&("string"!=typeof i.group||"test"!==i.group&&"control"!==i.group)||(u=!0)),o&&a&&u){i.config.experiment&&delete i.config.experiment;var l={config:i.config,id:i.id,size:i.size,startDate:i.startDate};i.startDate?(0,W.u)(i.startDate)instanceof Date?(i.group&&(l.group=i.group),r=l):(console.log("Didomi - The test start date must be a date formatted as an ISO-8601 string"),r=null):(i.group&&(l.group=i.group),r=l)}else o?a?u||console.log('Didomi - The experiment group must be "control" or "test"'):console.log("Didomi - The test group size must be between 0 and 1"):console.log("Didomi - Experiment requires an ID, a size and a config to run"),r=null;var{id:d,size:c,startDate:p,group:v}=null!=(s=r)?s:{};if(!d||"number"!=typeof c)return null;if(!((e,t)=>{if(!e)return!0;var n=(0,W.u)(e);if(!n)return!0;var s=(0,W.u)(t);return s instanceof Date&&n.getTime()<=s.getTime()})(p,C.II.value.created))return null;var h,f,g=v||(h=C.II.value.user_id,f=c,h&&36===h.length?0===f?"control":parseInt(h.slice(-5),16)%1e3<1e3*f?"test":"control":null);return g&&g?(0,t.A)({},r,{group:g}):null}),me=(0,V.EW)(()=>{var{value:e}=ge;return e&&e.id?{group:e.group,id:e.id,size:e.size,startDate:e.startDate}:null}),be=o(72177);class Ie extends v.A{constructor(e,t,n){super(e,t,n),this.sentEvents={}}configure(e){window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"preferences.shownpurposes",listener:this.sendPreferencesPurposesShown.bind(this)},{event:"preferences.shownvendors",listener:this.sendPreferencesVendorsShown.bind(this)},{event:"preferences.clickpurposeagree",listener:this.sendPreferencesPurposeStatusChanged.bind(this)},{event:"preferences.clickpurposedisagree",listener:this.sendPreferencesPurposeStatusChanged.bind(this)},{event:"preferences.clickvendoragree",listener:this.sendPreferencesVendorStatusChanged.bind(this)},{event:"preferences.clickvendordisagree",listener:this.sendPreferencesVendorStatusChanged.bind(this)},{event:"preferences.shownpersonaldatatypes",listener:this.sendPreferencesShownPersonalDataTypes.bind(this)},{event:"preferences.clickspiagree",listener:this.sendPreferencesSPIChanged.bind(this)},{event:"preferences.clickspidisagree",listener:this.sendPreferencesSPIChanged.bind(this)})}customizeEvent(e,s){var r,i,o,a,u,d,{includeToken:c=!0,includeUserId:p=!1,organizationUserId:v=null,authorizationParameters:h={},includeSignature:f=!1}=void 0===s?{}:s;fe.value&&(0,l.hZ)(e,"source.provider",fe.value),ue.K.value&&(0,l.hZ)(e,"source.key",ue.K.value);var g=null==(r=le.h.value)?void 0:r.country;g&&(0,l.hZ)(e,"user.country",g);var m=null==(i=le.h.value)?void 0:i.region;m&&(0,l.hZ)(e,"user.region",m);var b=[],I=null==(o=J.r.value)?void 0:o.name;I&&b.push(I),(0,l.hZ)(e,"user.regs",b);var y=(0,l.Go)(C.II.value);p&&y.user_id&&(0,l.hZ)(e,"user.id",y.user_id),v&&(0,l.hZ)(e,"user.organization_user_id",v),(0,l.hZ)(e,"user",(0,t.A)({},e.user,h)),c&&y&&Object.keys(y).length>0&&((0,l.hZ)(e,"user.token",y),p||(0,l.hZ)(e,"user.token.user_id",null));var w,A,_=me.value;(_&&(0,l.Kg)(_.group)&&(0,l.Kg)(_.id)&&(0,l.Et)(_.size)&&(e.experiment=_),ve.X.value&&((0,l.hZ)(e,"user.tcfcs",S.M.value),(0,l.hZ)(e,"user.tcfv",pe.q.value.majorVersion)),null!=(a=he.U.value)&&a.deploymentId)&&(0,l.hZ)(e,"source.deployment_id",null==(w=he.U.value)?void 0:w.deploymentId);null!=(u=n.bK.value)&&u.id&&(0,l.hZ)(e,"source.sdk_config_id",null==(A=n.bK.value)?void 0:A.id);var P=ae(this.store.getState());if(P&&(0,l.hZ)(e,"source.domain",P),f&&null!=(d=ce.O.value)&&d.signatureEnabled){var E=this.services.SignatureService.getSignatureParams();E&&((0,l.hZ)(e,"user.dcs",E.dcs),(0,l.hZ)(e,"user.dcs_user",E.dcsUser))}return e}send(e,t,n,r,i){var o,a;if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=!1),void 0===i&&(i=!0),null!=(o=oe.value)&&o.muteAPIEvents)return null;if(!(0,l.zu)(this.eventTypes).map(e=>e.type).includes(e))throw new Error("Invalid event type "+e);if("number"==typeof n){if(!((e,t)=>!(!e||36!==e.length||!t||"number"!=typeof t||t<0||t>1)&&parseInt(e.slice(-2),16)/255<=t)(this.services.StorageService.getIdFromConsentToken(),n))return null}else n=1;var u=[],d=[{organizationUserId:null==(a=F.G.value)?void 0:a.organizationUserId,authorizationParameters:this.services.SyncService.getAuthorizationParameters(),includeUserId:!0}];if("consent.given"===e){var c,p=null==(c=F.G.value)?void 0:c.synchronizedUsers;null==p||p.forEach(e=>{d.push({parameters:{action:"multiple-IDs"},organizationUserId:e.organizationUserId,authorizationParameters:this.services.SyncService.getMappedAuthorizationParameters(e)})}),d[0].includeSignature=!0}return d.forEach(s=>{var i,o=this.customizeEvent((0,l.Go)(null==(i=oe.value)?void 0:i.template),s);o.type=e,o.rate=n,t&&(o.parameters=t),s.parameters&&(o.parameters=(0,l.or)(o.parameters,s.parameters)),(0,l.hZ)(o,"source.beacon",!1),!0===r&&"function"==typeof navigator.sendBeacon&&(0,l.hZ)(o,"source.beacon",!0),u.push(o)}),!0===r&&"function"==typeof navigator.sendBeacon?navigator.sendBeacon((0,s.M)("apiPath")+"/events?data_format=json",JSON.stringify(u)):re.ajax({method:"POST",url:(0,s.M)("apiPath")+"/events",body:JSON.stringify(u),headers:{"Content-Type":"application/json"},cors:!0},(t,n)=>this.processEventResponse({code:t,responseText:n,type:e})),u}processEventResponse(e){var{code:t,responseText:n,type:s}=e;if(201===t&&n){var r=JSON.parse(n);if(Array.isArray(r)){var i=r.find(e=>e.dcs&&e.dcs_user&&e.signature);i&&this.services.SignatureService.updateCookie({dcsUserId:i.dcs_user,signature:i.signature,trigger:"consent-changed"})}}else{var o,a=(null==(o=(0,l.zu)(this.eventTypes).find(e=>e.type===s))?void 0:o.errorName)||"createEvent";(0,B.KU)(t,a)}}sendPageview(e){void 0===e&&(e=!1);var n=de.M.value&&sessionStorage.getItem("didomi-page-session-active");if(void 0===this.sentEvents[this.eventTypes.pageview.type]&&!n){var s,r,i=null;K.value.size>0&&(i=(0,t.A)({},i||{},{features:[...K.value]})),be.A.value&&(i=(0,t.A)({},i||{},{gcm_error:be.A.value})),this.send(this.eventTypes.pageview.type,i,null==(s=oe.value)||null==(r=s.sampleSizes)?void 0:r.pageview,e,!0),this.sentEvents[this.eventTypes.pageview.type]=!0,de.M.value&&window.sessionStorage.setItem("didomi-page-session-active",!0)}}sendConsentAsked(e,t,n,s,r){var i,o;void 0===this.sentEvents[this.eventTypes.consentAsked.type]&&(this.send(this.eventTypes.consentAsked.type,{purposes:e,vendors:t,position:r,purposes_li:n,vendors_li:s},null==(i=oe.value)||null==(o=i.sampleSizes)?void 0:o.consentAsked),this.sentEvents[this.eventTypes.consentAsked.type]=!0)}sendConsentGiven(e,t){var n,s;void 0===t&&(t=!1),this.send(this.eventTypes.consentGiven.type,e,null==(n=oe.value)||null==(s=n.sampleSizes)?void 0:s.consentGiven,t)}sendPreferencesPurposesShown(){var e,t,n=this.eventTypes.uiAction.type+"-preferences.showpurposes";void 0===this.sentEvents[n]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.shownpurposes"},null==(e=oe.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesPurposes,!1,!1),this.sentEvents[n]=!0)}sendPreferencesVendorsShown(){var e,t,n=this.eventTypes.uiAction.type+"-preferences.showvendors";void 0===this.sentEvents[n]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.shownvendors"},null==(e=oe.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesVendors,!1,!1),this.sentEvents[n]=!0)}sendPreferencesPurposeStatusChanged(e){var n,s,r=e||{},i=this.eventTypes.uiAction.type+"-preferences.purposechanged";void 0===this.sentEvents[i]&&(this.send(this.eventTypes.uiAction.type,(0,t.A)({action:"preferences.purposechanged",category:void 0!==r.category&&r.category},r),null==(n=oe.value)||null==(s=n.sampleSizes)?void 0:s.uiActionPreferencesPurposeChanged,!1,!1),this.sentEvents[i]=!0)}sendPreferencesVendorStatusChanged(){var e,t,n=this.eventTypes.uiAction.type+"-preferences.vendorchanged";void 0===this.sentEvents[n]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.vendorchanged"},null==(e=oe.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesVendorChanged,!1,!1),this.sentEvents[n]=!0)}sendPreferencesShownPersonalDataTypes(){var e,t,n=this.eventTypes.uiAction.type+"-preferences.shownpersonaldatatypes";void 0===this.sentEvents[n]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.shownpersonaldatatypes"},null==(e=oe.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesShownPersonalDataTypes,!1,!1),this.sentEvents[n]=!0)}sendPreferencesSPIChanged(){var e,t,n=this.eventTypes.uiAction.type+"-preferences.spichanged";void 0===this.sentEvents[n]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.spichanged"},null==(e=oe.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesSPIChanged,!1,!1),this.sentEvents[n]=!0)}sendSyncAcknowledged(e){var t,n,s=this.eventTypes.syncAcknowledged.type;return!this.hasEventBeenSent(s)&&(this.send(this.eventTypes.syncAcknowledged.type,e,null==(t=oe.value)||null==(n=t.sampleSizes)?void 0:n.syncAcknowledged,!1,!1),this.sentEvents[s]=!0,!0)}hasEventBeenSent(e){return void 0!==this.sentEvents[e]}}Ie.prototype.eventTypes={pageview:{type:"pageview",errorName:"createEventPageview"},consentAsked:{type:"consent.asked",errorName:"createEventConsentAsked"},consentGiven:{type:"consent.given",errorName:"createEventConsentGiven"},uiAction:{type:"ui.action",errorName:"createEventUIAction"},syncAcknowledged:{type:"sync.acknowledged",errorName:"createEventSyncAcknowledged"},metrics:{type:"metrics",errorName:"createEventMetrics"}};var ye=o(34768),Se=o(22639),Ce=o(40950),we=o(91963);class Ae extends v.A{configure(e){e&&this.actions.setConsentNoticeConfig(e)}isVisible(){return(0,l.Jt)(this.store.getState(),"consentNotice.show")||!1}uiLoaded(){var e,t,n,s;!0===this.store.getState().consentNotice.showOnUILoad&&(null!=(e=ye.l.value)&&e.enable&&this.actions.showConsentNotice(),(null!=(t=ye.l.value)&&t.enable||null!=(n=Se.v.value)&&n.showWhenConsentIsMissing)&&(null==(s=ye.l.value)||!s.enable)||(0,B.Ic)("notice.shown"))}show(){var e,t;"none"!==(null==(e=J.r.value)?void 0:e.name)?we.p.value?console.warn("Didomi - User is a bot and consent is not required for bots. The notice will not be shown."):(null!=(t=F.G.value)&&t.isUnderage&&(0,Ce.L)({visible:!0}),this.isVisible()||(this.actions.showConsentNoticeOnLoad(),this.services.UIService.show(this.uiLoaded.bind(this)))):console.warn("Didomi - No regulation applicable. The notice will not be shown.")}hide(){var e;this.isVisible()&&(0,B.Ic)("notice.hidden"),this.actions.hideConsentNotice(),null!=(e=F.G.value)&&e.isUnderage&&(0,Ce.L)({visible:!1})}close(){this.hide(),(0,B.Ic)("notice.clickclose")}}var _e=o(58281);class Pe extends v.A{configure(e){e&&this.actions.setConsentPopupConfig((0,t.A)({},e))}isVisible(){return(0,l.Jt)(this.store.getState(),"consentPopup.open")||!1}uiLoaded(e){var t,n,s,r;"information"===e?null!=(t=Se.v.value)&&null!=(n=t.information)&&n.enable&&(this.isVisible()||(0,B.Ic)("preferences.shown"),this.actions.showConsentPopup(),this.actions.switchViewConsentPopup(e)):(this.isVisible()||de.M.value||(0,B.Ic)("preferences.shown"),this.actions.showConsentPopup(),-1!==["purposes","vendors","sensitive-personal-information"].indexOf(e)?(this.actions.switchViewConsentPopup("preferences"),this.actions.switchPreferencesViewConsentPopup(e)):null!=(s=Se.v.value)&&null!=(r=s.information)&&r.enable?this.actions.switchViewConsentPopup("information"):(this.actions.switchViewConsentPopup("preferences"),this.actions.switchPreferencesViewConsentPopup("purposes")))}show(e){var t;if("vendors"===e&&!_e.A.value)return console.error("Didomi - This action cannot be performed.");"none"!==(null==(t=J.r.value)?void 0:t.name)?this.services.UIService.show(this.uiLoaded.bind(this,e)):console.warn("Didomi - No regulation applicable. The notice will not be shown.")}hide(){this.isVisible()&&(this.actions.hideConsentPopup(),(0,B.Ic)("preferences.hidden"))}}var Ee=o(34956),Oe=o(26149),ke=(0,V.EW)(()=>{if(!q.a.value.hasMadeAnyChoice&&te.H.value.thirdPartyOperators.length>0)return!1;var e=[];for(var t of A.t.value.purposesBasedOnConsent)e.push(q.a.value.byLegalBasis.consent.purposesById[t.id]);for(var n of A.t.value.purposesBasedOnLI)e.push(q.a.value.byLegalBasis.li.purposesById[n.id]);return te.H.value.thirdPartyOperators.forEach(t=>{t.collectionMethods.includes("optin")&&e.push(q.a.value.byLegalBasis.consent.vendorsById[t.id]),t.collectionMethods.includes("optout")&&e.push(q.a.value.byLegalBasis.li.vendorsById[t.id])}),!1===e.some(e=>void 0===e)}),Le=(0,V.EW)(()=>{var e;return!0===(null==(e=he.U.value)?void 0:e.resetConsentBeforeRecollection)}),Te=o(23187),De=e=>(e=>(0,Te.Hm)(e,he.U.value.consentDuration))(e)||(e=>(0,Te.Hm)(e,he.U.value.deniedConsentDuration)&&(0,Te.RT)(e))(e),Ue=(0,V.EW)(()=>{var e,t,n,s,r=null==(e=ye.l.value)?void 0:e.daysBeforeShowingAgain,i=null==(t=C.II.value)?void 0:t.updated;return(n=new Date(i||null),(s=Math.round(((new Date).getTime()-n.getTime())/864e5))<0?0:s)>=Number(null!=r?r:0)}),Re=void 0,Be=o(81062),Ve={iab:{all:!0,version:2}},Ne=(0,V.EW)(()=>{var e,t,n,s,r,i,o,a,u;return null!=(e=he.U.value)&&null!=(t=e.vendors)&&null!=(n=t.iab)&&n.cmpId&&(0,l.Et)(null==(s=he.U.value)||null==(r=s.vendors)||null==(i=r.iab)?void 0:i.cmpId)?null==(o=he.U.value)||null==(a=o.vendors)||null==(u=a.iab)?void 0:u.cmpId:M.a.defaultCMPID}),xe=o(61304),Me=void 0,Fe=()=>new Promise(e=>{Promise.resolve().then(o.bind(o,39212)).then(n=>{var s,r,i,o,a,u,l,d,c=(0,t.A)({},he.U.value&&he.U.value,{vendors:(0,t.A)({},(r=null==(s=he.U.value)?void 0:s.vendors,void 0===r?Ve:void 0===(null==r?void 0:r.iab)||void 0===r.iab.all&&void 0===r.iab.include&&void 0===r.iab.exclude?(0,t.A)({},r,Ve):r))});n.initIABTCF(Be.A.value,c,{removeDeletedVendors:xe.s.value,encoderOptions:{cmpId:Ne.value,cmpVersion:M.a.defaultCMPVersion,disclosedVendorsSegment:2===(null==(i=he.U.value)||null==(o=i.vendors)||null==(a=o.iab)?void 0:a.version)&&3===(null==(u=he.U.value)||null==(l=u.vendors)||null==(d=l.iab)?void 0:d.minorVersion)}}),(e=>{Me=e})(n),e()})}),ze=o(55217),je=(0,V.EW)(()=>{var e,t,n,s,r=null==(e=he.U.value)||null==(t=e.vendors)||null==(n=t.iab)?void 0:n.defaultStrings,i=null==r?void 0:r.vendorListVersion,o=null==r?void 0:r.created,a=(0,ze.JT)(new Date).toISOString(),u=void 0,l=void 0,d=void 0;return(null==(s=Be.A.value)?void 0:s.vendorListVersion)===i&&a===o&&(u=null==r?void 0:r.default,l=null==r?void 0:r.positive,d=null==r?void 0:r.negative),{defaultTCString:u,positiveTCString:l,negativeTCString:d}}),We=!1,Ge=e=>{We!==e&&(We=e,Re.updateIABTCFCmpApi(e))},Je=()=>{var e;(0,B.on)("notice.shown",()=>{var e;null!=(e=ye.l.value)&&e.enable&&Ge(!0)}),(0,B.on)("preferences.shown",()=>Ge(!0)),null!=(e=ye.l.value)&&e.enable?(0,B.on)("notice.hidden",()=>Ge(!1)):(0,B.on)("preferences.hidden",()=>{var e;null!=(e=ye.l.value)&&e.enable||Ge(!1)}),(0,B.on)("internal.consent.changed",()=>Re.updateIABTCFCmpApi(!1))},qe=()=>{var e,t,s,r,i;if(void 0!==Re&&void 0!==Me){var o={cmpId:Ne.value,cmpVersion:M.a.defaultCMPVersion,isConsentRequired:$.y.value,isGDPRApplied:"gdpr"===(null==(e=J.r.value)?void 0:e.name),defaultConsentString:null,enableAdvertiserConsentMode:!0===(null==(t=n.bK.value.integrations)||null==(s=t.vendors)||null==(r=s.gcm)?void 0:r.enableTCFAdvertiserConsentMode),consentStringGetter:()=>S.M.value,additionalConsentStringGetter:()=>w.J.value,sdkEventListenersSetter:Je};if(!ve.X.value||"gdpr"!==(null==(i=J.r.value)?void 0:i.name))return o.isConsentRequired=!1,o.consentStringGetter=()=>null,void Re.initIABTCFCmpAPI(he.U.value,o);if(!($.y.value?S.M.value:null)&&$.y.value){var a,u=null==(a=je.value)?void 0:a.defaultTCString;if(!u){var l,d,c={defaultLIToEnabled:!(null!=(l=Se.v.value)&&l.combineLIAndConsent),generate:{default:!0,positive:!1,negative:!1}};u=null==(d=Me.getDefaultStrings(c))?void 0:d.default}o.defaultConsentString=u,u&&(0,S.R)(u)}Re.initIABTCFCmpAPI(he.U.value,o)}};class Ke extends v.A{configure(e){if(e){var t={};"object"==typeof e.regulations&&(t.regulations=e.regulations,"object"==typeof e.regulations.gdpr&&e.regulations.gdpr.additionalCountries&&(Array.isArray(e.regulations.gdpr.additionalCountries)?t.regulations.gdpr.additionalCountries=e.regulations.gdpr.additionalCountries:t.regulations.gdpr.additionalCountries=[]));var n=(0,l.Jt)(e,"vendors.google");n&&n.additionalConsent&&(t.google={additionalConsent:{positive:"string"==typeof n.additionalConsent.positive?n.additionalConsent.positive:null,negative:"string"==typeof n.additionalConsent.negative?n.additionalConsent.negative:null}}),n&&void 0!==n.fullATP&&(0,l.hZ)(t,"google.fullATP",n.fullATP),e.customDomain&&(t.customDomain=e.customDomain),this.actions.setWebsiteConfig(t)}}shouldReconsentBeEnforced(){return Le.value&&(this.shouldUserStatusBeCollected()||De(C.II.value))}_showNoticeAndPreferences(){var e,t;this.services.NoticeService.show(),"ccpa"!==(null==(e=J.r.value)?void 0:e.name)&&null!=(t=Se.v.value)&&t.showWhenConsentIsMissing&&this.services.PreferencesService.show()}resetAllUserChoicesToDefaults(){var{user_id:e}=C.II.value;this.services.StorageService.createNewToken(e),qe()}determineConsentNoticeStatus(){if(this.shouldReconsentBeEnforced())this.resetAllUserChoicesToDefaults(),this._showNoticeAndPreferences();else if(this.shouldNoticeBeShown())this._showNoticeAndPreferences();else{var e;this.services.NoticeService.hide(),null!=(e=Se.v.value)&&e.showWhenConsentIsMissing&&this.services.PreferencesService.hide()}}shouldNoticeBeShown(){var e;return"ccpa"===(null==(e=J.r.value)?void 0:e.name)?this.services.CCPAService.shouldShowNotice():this.shouldConsentBeCollected()}shouldConsentBeCollected(){return!!$.y.value&&(!!G.value||!0!==ke.value&&(Ue.value||!q.a.value.hasMadeAnyChoice))}shouldUserStatusBeCollected(){var e;return"none"!==(null==(e=J.r.value)?void 0:e.name)&&(!!G.value||(!q.a.value.hasMadeAnyChoice||this.isUserStatusPartial()&&Ue.value))}setUserAgreeToAll(e){var t=I.T.value,n=A.t.value.purposeIdsBasedOnConsent,s=A.t.value.purposeIdsBasedOnLI,r=b.R.value;if(0!==[...n,...s].length&&0!==r.length||0!==t.length){var i=new d.A(this.services.ConsentService.getUserStatus.bind(this.services.ConsentService),this.services.ConsentService.setUserStatus.bind(this.services.ConsentService),e);i.enablePurposes(...n),i.enableVendors(...r),i.enableVendorsLegitimateInterests(...Oe.H$.value.operatorIdsByCollectionMethod.optout),i.enablePurposesLegitimateInterests(...s),i.commit(),this.services.NoticeService.hide()}}setUserDisagreeToAll(e){var t=I.T.value,n=A.t.value.purposeIdsBasedOnConsent,s=A.t.value.purposeIdsBasedOnLI,r=b.R.value;if(0!==[...n,...s].length&&0!==r.length||0!==t.length){var i=new d.A(this.services.ConsentService.getUserStatus.bind(this.services.ConsentService),this.services.ConsentService.setUserStatus.bind(this.services.ConsentService),e);i.disablePurposes(...n),i.disableVendors(...r),i.disableVendorsLegitimateInterests(...Oe.H$.value.operatorIdsByCollectionMethod.optout),i.disablePurposesLegitimateInterests(...s),i.commit(),this.services.NoticeService.hide()}}isUserConsentStatusPartial(){var e;return!1!==$.y.value&&(0!==(null==(e=Ee.h.value)?void 0:e.length)&&!ke.value)}isUserStatusPartial(){var e;return"none"!==(null==(e=J.r.value)?void 0:e.name)&&(!(!Ee.h.value||0===Ee.h.value.length)&&!ke.value)}}var He=o(95236),Ze=o(98516);class Ye extends v.A{updateConsentToken(e){var t=this.createConsentByVendorFromToken(e);this.actions.setConsentByVendor(t),(0,C.vY)(e)}isVendorEnabled(e){var{vendor:t,enabledPurposes:n,enabledLIPurposes:s=[],essentialPurposes:r,enabledVendors:i}=e;if(-1===i.indexOf(t.id))return!1;var o=Array.isArray(t.purposeIds)?t.purposeIds.filter(e=>-1===r.indexOf(e)):t.purposeIds;for(var a of o)if(-1===n.indexOf(a))return!1;var u=Array.isArray(t.legIntPurposeIds)?t.legIntPurposeIds.filter(e=>-1===r.indexOf(e)):[];for(var l of u)if(-1===s.indexOf(l))return!1;return!0}createConsentByVendorFromToken(e){var t={},{purposes:n,purposes_li:s,vendors:r,vendors_li:i}=e,o=x("isVendorEnabled",this.isVendorEnabled),a=I.T.value,{enabledVendors:u,disabledVendors:l}=(e=>{var t=(0,g.$)([...He.M.value,...Ze.p.value]),n=e.disabled.filter(e=>-1===t.indexOf(e));return{enabledVendors:[...e.enabled,...t],disabledVendors:n}})({enabled:(0,g.$)([...r.enabled,...i.enabled]),disabled:(0,g.$)([...r.disabled,...i.disabled])});return[...u,...l].forEach(e=>{var r,i=null==(r=m.o.value)?void 0:r[e];t[e]={consentToAllPurposes:!i||o({vendor:i,enabledPurposes:n.enabled,disabledPurposes:n.disabled,enabledLIPurposes:(null==s?void 0:s.enabled)||[],essentialPurposes:a,enabledVendors:u,disabledVendors:l})}}),t}}var $e={setConsent(e,n){var{purposeId:s,preferenceId:r,channelId:i,data:o={}}=n,{enabled:a,metadata:u={},preferenceValue:d}=o,c=(0,l.Go)(e),p=null,v=null;return s?((0,l.hZ)(c,"purposes."+s+".id",s),s&&r&&null!=d?(0,l.hZ)(c,"purposes."+s+".values."+r,{value:d}):r?((0,l.hZ)(c,"purposes."+s+".preferences."+r+".id",r),i?(p="purposes."+s+".preferences."+r+".channels."+i,v=i):(p="purposes."+s+".preferences."+r,v=r)):i?(p="purposes."+s+".channels."+i,v=i):(p="purposes."+s,v=s)):i&&(p="channels."+i,v=i),p&&(0,l.hZ)(c,p,(0,t.A)({id:v},(0,l.Jt)(e,""+p,{}),{metadata:(0,l.zw)((0,l.Jt)(e,p+".metadata",{}),u),enabled:a})),c}},Qe={normalizeConsents(e){void 0===e&&(e={});var n={};return e&&(e.purposes&&Array.isArray(e.purposes)&&(n.purposes={},e.purposes.forEach(e=>{n.purposes[e.id]=(0,t.A)({},e,{preferences:{},channels:{}}),e.channels&&Array.isArray(e.channels)&&e.channels.forEach(s=>{n.purposes[e.id].channels[s.id]=(0,t.A)({},s)}),e.preferences&&Array.isArray(e.preferences)&&e.preferences.forEach(s=>{n.purposes[e.id].preferences[s.id]=(0,t.A)({},s,{channels:{}}),s.channels&&Array.isArray(s.channels)&&s.channels.forEach(t=>{n.purposes[e.id].preferences[s.id].channels[t.id]=t})})})),e.channels&&Array.isArray(e.channels)&&(n.channels={},e.channels.forEach(e=>{n.channels[e.id]=e}))),n},denormalizeConsents(e){return{purposes:Object.keys(e.purposes||{}).map(n=>{var{preferences:s,channels:r}=e.purposes[n];return(0,t.A)({},e.purposes[n],{preferences:Object.keys(s||{}).map(e=>{var n=s[e];return(0,t.A)({},n,{channels:Object.keys(n.channels||{}).map(e=>(0,t.A)({},n.channels[e]))})}),channels:Object.keys(r||{}).map(e=>r[e])})}),channels:Object.keys(e.channels||{}).map(t=>e.channels[t])}}},Xe=o(52140),et=o(38311),tt=(0,V.vP)(null);(0,V.QZ)(()=>{tt.value=(()=>{if(F.G.value.authToken)return F.G.value.authToken;try{var e,t=(null==(e=F.G.value.auth)?void 0:e.tokenName)||"token",n=(0,ze.FY)(t);if(n)return n}catch(e){}return(0,et._S)("didomi_auth_token")||null})()});var nt=e=>{tt.value=e},st=o(88517);class rt extends v.A{getRemoteConsentsFromAPI(e){var{mergeUsers:t=!1}=void 0===e?{}:e,n=tt.value&&(0,Te.K9)(tt.value);return new Promise(e=>{if(tt.value&&n){var r=(0,s.M)("apiPath")+"/consents/users";if(t)r=r+"/"+n.sub+"?$merge_users=true";re.ajax({method:"GET",url:r,headers:{Authorization:"Bearer "+tt,"Content-Type":"application/json"},cors:!0},(n,s)=>{var r=null;if(404===n&&t)this.actions.setUserAuthenticated(!0),(0,B.Ic)("remoteconsent.authenticated",!0);else if(200===n){var i;try{r=JSON.parse(s),t||(r=(0,l.Jt)(r,"data",[]))[0]&&(r=r[0])}catch(e){}if(r){var o=Qe.normalizeConsents((0,l.Jt)(r,"consents",null));r.consents=o}this.actions.loadRemoteConsents(r),this.actions.setUserAuthenticated(!0),(0,st.C)(null==(i=r)?void 0:i.id),(0,B.Ic)("remoteconsent.authenticated",!0)}else this.actions.setUserAuthenticated(!1),(0,B.Ic)("remoteconsent.authenticated",!1),(0,B.KU)(n,"getRemoteConsentUser");(0,B.Ic)("remoteconsent.loaded"),e(r)})}else this.actions.setUserAuthenticated(!1),(0,B.Ic)("remoteconsent.loaded"),(0,B.Ic)("remoteconsent.authenticated",!1),e(null)})}getRemoteConsentEventsFromAPI(e){var{cursor:n,query:r}=e;return new Promise(e=>{if(tt.value){var i=(0,t.A)({},r||{});n&&(i.$cursor=n);var o=Object.keys(i).map(e=>e+"="+encodeURIComponent(i[e])).join("&");re.ajax({method:"GET",url:(0,s.M)("apiPath")+"/consents/events"+(o?"?"+o:""),headers:{Authorization:"Bearer "+tt.value,"Content-Type":"application/json"},cors:!0},(t,n)=>{var s={};if(200===t){try{s=JSON.parse(n)}catch(e){}e(s)}else(0,B.KU)(t,"getRemoteConsentEvents");e(s)})}else e({data:[]})})}setConsent(e,t){var{purposeId:n,preferenceId:s,channelId:r,data:i}=t;return $e.setConsent(e,{purposeId:n,preferenceId:s,channelId:r,data:i})}getRemoteConsentStatusForAll(){return(0,l.Go)((0,l.Jt)(this.store.getState(),"remoteConsents"))}getRemoteConsentEventsForAll(e){return void 0===e&&(e={}),this.getRemoteConsentEventsFromAPI(e).then(e=>{var n=e.data.map(e=>(0,t.A)({},e,{consents:Qe.normalizeConsents(e.consents)}));return(0,t.A)({},e,{data:n})})}setRemoteConsentStatusForAll(e){return void 0===e&&(e={}),new Promise((t,n)=>tt.value?e.consents&&"object"==typeof e.consents?void re.ajax({method:"POST",url:(0,s.M)("apiPath")+"/consents/events",body:JSON.stringify(e),headers:{Authorization:"Bearer "+tt.value,"Content-Type":"application/json"},cors:!0},(e,s)=>{if(201===e){var r={};try{r=JSON.parse(s)}catch(e){}this.actions.setRemoteConsents(Qe.normalizeConsents(r.consents)),this.refreshRemoteConsentsFromAPI().then(()=>{t()})}else(0,B.KU)(e,"createRemoteConsentEvent"),n(new Error("Invalid HTTP response code"))}):(console.error("Didomi - Unable to set the remote consent because the consents is empty"),n(new Error("Unable to set the remote consent because the consents is empty"))):(console.error("Didomi - Unable to set the remote consent because the token is empty"),n(new Error("Unable to set the remote consent because the token is empty"))))}refreshRemoteConsentsFromAPI(e){return this.getRemoteConsentsFromAPI(e).then(()=>{(0,B.Ic)("remoteconsent.changed")})}saveConsentForEntityById(e,t,n,s,r,i,o,a,u,d){var c=(0,l.Up)(s,["enabled","metadata","preferenceValue"]),p=this.setConsent({},{purposeId:e,preferenceId:t,channelId:n,data:c}),v={consents:Qe.denormalizeConsents(p),metadata:r,proofs:i,source:o,validation:a};return u&&u.metadata&&(v.user={metadata:u.metadata}),d&&(v.analytics=d),this.setRemoteConsentStatusForAll(v)}setPendingConsentForEntityById(e,t,n,s){var r=(0,l.Up)(s,["enabled","metadata","preferenceValue"]);this.actions.setPendingConsent({purposeId:e,preferenceId:t,channelId:n,data:r}),(0,B.Ic)("consent.pendingchanged",{pendingConsents:this.getPendingConsents()})}getPendingConsents(){var{pendingConsents:e}=this.store.getState();return Object.keys(e).map(t=>e[t])}savePendingConsents(e){void 0===e&&(e={});var n={};this.getPendingConsents().forEach(e=>{var{purposeId:t,preferenceId:s,channelId:r,data:i}=e;n=this.setConsent(n,{purposeId:t,preferenceId:s,channelId:r,data:i})});var s=Qe.denormalizeConsents(n);return this.setRemoteConsentStatusForAll((0,t.A)({consents:s},e)).then(()=>this.resetPendingConsents())}resetPendingConsents(){this.actions.resetPendingConsents(),(0,B.Ic)("consent.pendingchanged",{pendingConsents:this.getPendingConsents()})}isUserAuthenticated(){return(0,l.Jt)(this.store.getState(),"isUserAuthenticated")}getCallbackURL(){return(0,l.Jt)(this.store.getState(),"callbackURL")||null}getAuthProtocol(){return(0,l.Jt)(this.store.getState(),"authProtocol")}requestAuthenticationURL(e){var{authProviderId:t}=void 0===e?{}:e,{location:{protocol:n,hostname:r,pathname:i}}=document,o=n+"//"+r+i,a=(0,s.M)("apiPath"),u=new URL(a);return u.pathname="/auth/initiate",u.searchParams.append("key",ue.K.value),u.searchParams.append("privacy_center_url",o),u.searchParams.append("redirect",!1),t&&u.searchParams.append("auth_provider_id",t),new Promise(e=>{re.ajax({url:u.toString()},(t,n)=>{if(200===t)try{var s=JSON.parse(n),r=s.callback,i=s.protocol;this.actions.setCallbackURL(r),this.actions.setAuthProtocol(i),e(r)}catch(t){console.error("Didomi - "+t.message),e(!1)}else(0,B.KU)(t,"requestAuthentication");e(!1)})})}sendLogin(e){var{value:t,channel:n,params:s}=e;return new Promise((e,r)=>{var i=this.getCallbackURL();if(!i){var o="You need to request a callback URL through Didomi.requestAuthenticationURL({ authProviderId })";return console.error("Didomi - "+o),r({error:o})}var a=s?"&"+encodeURI(Object.keys(s).map(e=>"message_params["+e+"]="+s[e]).join("&")):"";re.ajax({method:"GET",url:i+"&channel="+n+"&id="+encodeURIComponent(t)+a,cors:!0},(t,n)=>200!==t?(console.error("Didomi - An error occurred while trying to send the message"),(0,B.KU)(t,"sendMessage"),r({error:n,code:t})):e())})}verifyOtpCode(e){var{organizationUserId:t,code:n,authProviderId:r}=void 0===e?{}:e,i=(0,s.M)("apiPath")+"/auth/protocols/otp/verify",o=new URL(i);return o.searchParams.append("key",ue.K.value),r&&o.searchParams.append("auth_provider_id",r),new Promise((e,s)=>{re.ajax({method:"POST",url:o,body:JSON.stringify({code:n,organization_user_id:t}),headers:{"Content-Type":"application/json"},cors:!0},(t,n)=>{if(201!==t)return console.error("Didomi - An error occurred while trying to send the message"),(0,B.KU)(t,"verifyOtpCode"),s({error:n,code:t});var{token:r}=JSON.parse(n);return(0,Xe.NT)("didomi_auth_token",r),nt(r),e({token:r})})})}}var it=o(87127),ot=o(4640),at=(0,V.vP)(null),ut=e=>{at.value=e},lt=e=>!0===e.sync.enabled,dt=e=>e.sync.timeout,ct=(0,f.Mz)(e=>e.sync.frequency,()=>{var e;return(0,W.u)(null==(e=C.II.value)?void 0:e.sync)},(e,t)=>!t||!e||!!(Math.floor((new Date-new Date(t))/1e3)>=e)),pt=(0,f.Mz)(lt,()=>{var e;return null==(e=F.G.value)?void 0:e.organizationUserId},()=>ot.w.value,ct,()=>{var e,t,n;return!(null==(e=at.value)||!e.organizationUserId)&&(null==(t=at.value)?void 0:t.organizationUserId)!==(null==(n=F.G.value)?void 0:n.organizationUserId)},(e,t,n,s,r)=>!0===e&&"string"==typeof t&&t.length>0&&!1===n&&(s||r)),vt=e=>e.signature.value,ht=o(97531),ft=o(92920),gt=(0,V.EW)(()=>{var e=ft.$.value||[],t=new Set;for(var n of e)n.legIntPurposeIds.forEach(e=>t.add(e));return[...t]}),mt=(0,V.EW)(()=>{var e;return(null==(e=pe.q.value)?void 0:e.semVersion)===M.a.tcfVersion2_2?{1:h.VF.consentOnly,2:h.VF.consentAndLegitimateInterest,3:h.VF.consentOnly,4:h.VF.consentOnly,5:h.VF.consentOnly,6:h.VF.consentOnly,7:h.VF.consentAndLegitimateInterest,8:h.VF.consentAndLegitimateInterest,9:h.VF.consentAndLegitimateInterest,10:h.VF.consentAndLegitimateInterest,11:h.VF.consentAndLegitimateInterest}:{1:h.VF.consentOnly,2:h.VF.consentAndLegitimateInterest,3:h.VF.consentAndLegitimateInterest,4:h.VF.consentAndLegitimateInterest,5:h.VF.consentAndLegitimateInterest,6:h.VF.consentAndLegitimateInterest,7:h.VF.consentAndLegitimateInterest,8:h.VF.consentAndLegitimateInterest,9:h.VF.consentAndLegitimateInterest,10:h.VF.consentAndLegitimateInterest}}),bt=(0,V.EW)(()=>{var e=mt.value;return"object"==typeof e&&e?Object.keys(e).reduce((t,n)=>(e[n]===h.VF.consentOnly&&t.push(parseInt(n,10)),t),[]):[]}),It=(0,V.EW)(()=>{var e=bt.value,t=gt.value;return e.map(e=>h.RQ[e]).filter(e=>t.includes(e))}),yt=(0,V.EW)(()=>{var{organizationUserId:e=null,organizationUserIdAuthAlgorithm:t=null,organizationUserIdAuthSid:n=null,organizationUserIdAuthSalt:s=null,organizationUserIdAuthDigest:r=null,organizationUserIdExp:i=null,organizationUserIdIv:o=null}=F.G.value||{};return{organizationUserId:e,organizationUserIdAuthAlgorithm:t,organizationUserIdAuthSid:n,organizationUserIdAuthSalt:s,organizationUserIdAuthDigest:r,organizationUserIdExp:i,organizationUserIdIv:o}}),St=o(35787),Ct=(0,V.EW)(()=>{var e;return St.T.value?null==(e=St.T.value)?void 0:e.map(e=>e.id):[]}),wt=o(57483),At=o(41990),_t=o(24163),Pt=o(62026),Et=o(73412),Ot=o(10379),kt=o(78691),Lt=(0,V.EW)(()=>{var e,t=Object.values(Et.m.value||{});if(null==t||!t.length||null==(e=ce.O.value)||!e.isDidomiConsentStringEncodingEnabled)return{purposeToNumericIdMap:{},numberIdToPurposeMap:{}};var n={},s={};for(var r of t){var i,o;(0,Ot.LL)(null==r||null==(i=r.namespaces)?void 0:i.num)&&!s[null==r||null==(o=r.namespaces)?void 0:o.num]&&(n[r.id]=r.namespaces.num,s[r.namespaces.num]=r.id)}return{purposeToNumericIdMap:n,numberIdToPurposeMap:s}});(0,V.QZ)(()=>{var e,t;if(null!=(e=kt.x.value)&&e.length&&null!=(t=ce.O.value)&&t.isDidomiConsentStringEncodingEnabled){var n=[];for(var s of kt.x.value){var r,i;if((0,Ot.LL)(null==s||null==(r=s.namespaces)?void 0:r.num))if(n.includes(null==s||null==(i=s.namespaces)?void 0:i.num))console.error('Didomi - The purpose id "'+(null==s?void 0:s.id)+'" has a numeric id that was already registered. Ignoring it.');else{var o;n.push(null==s||null==(o=s.namespaces)?void 0:o.num)}else console.error('Didomi - The purpose id "'+(null==s?void 0:s.id)+'" has an invalid numeric id. Ignoring it.')}}});var Tt=e=>null==e?void 0:e.map(e=>{var t;return null==(t=Lt.value)?void 0:t.purposeToNumericIdMap[e]}).filter(e=>e),Dt=(e,t)=>{var n={enabled:[],disabled:[]};if(!e)return n;var{enabled:s,disabled:r}=e;return s&&(n.enabled=t(s)),r&&(n.disabled=t(r)),n},Ut=(0,V.EW)(()=>{var e=Object.values(m.o.value||{});if(null==e||!e.length||!ce.O.value.isDidomiConsentStringEncodingEnabled)return{vendorToNumericIdMap:{},numberIdToVendorMap:{}};var t={},n={};for(var s of e){var r;(0,Ot.LL)(null==s||null==(r=s.namespaces)?void 0:r.num)&&(t[s.id]=s.namespaces.num,n[s.namespaces.num]=s.id)}return{vendorToNumericIdMap:t,numberIdToVendorMap:n}});(0,V.QZ)(()=>{var e,t;if(null!=(e=ft.$.value)&&e.length&&null!=(t=ce.O.value)&&t.isDidomiConsentStringEncodingEnabled)for(var n of ft.$.value){var s,r,i=n.purposeIds||[],o=n.legIntPurposeIds||[],a=!i.some(e=>{var t,n;return!(0,Ot.LL)(null==(t=Et.m.value[e])||null==(n=t.namespaces)?void 0:n.num)}),u=!o.some(e=>{var t,n;return!(0,Ot.LL)(null==(t=Et.m.value[e])||null==(n=t.namespaces)?void 0:n.num)});if(!a||!u)console.error('Didomi - The vendor with ID "'+((null==(r=n.id)?void 0:r.split("c:")[1])||n.id)+'" has purposes with invalid numeric IDs and they will not be encoded in the Didomi Consent String.');var l,d=null==(s=n.namespaces)?void 0:s.num;if(!(0,Ot.LL)(d))console.error('Didomi - The vendor with ID "'+((null==(l=n.id)?void 0:l.split("c:")[1])||n.id)+'" has an invalid numeric ID and it will not be encoded in the Didomi Consent String.')}});var Rt=e=>null==e?void 0:e.map(e=>{var t;return null==(t=Ut.value)?void 0:t.vendorToNumericIdMap[e]}).filter(e=>e),Bt=e=>{var t,n,s;if(_t.g&&e&&null!=(t=ce.O.value)&&t.isDidomiConsentStringEncodingEnabled){var r=null==(n=ce.O.value)?void 0:n.version,i=null==(s=ce.O.value)?void 0:s.schemaOverrides,o=void 0;i&&(o={schemaOverrides:i});var a,u=Dt(e.purposes,Tt),l=Dt(e.purposes_li,Tt),d=Dt(e.vendors,Rt),c=Dt(e.vendors_li,Rt),p=new Date(e.created),v=new Date(e.updated),h=e.sync?new Date(e.sync):void 0,f={userId:e.user_id,created:p,updated:v,vendors:{optin:d,optout:c},purposes:{optin:u,optout:l},sync:h};if(2===r)f.regulationId=null!=(a=e.regulation_id)?a:0;return _t.g.encode(r,f,o)}},Vt=e=>null==e?void 0:e.map(e=>{var t;return null==(t=Lt.value)?void 0:t.numberIdToPurposeMap[e]}).filter(e=>e),Nt=e=>null==e?void 0:e.map(e=>{var t;return null==(t=Ut.value)?void 0:t.numberIdToVendorMap[e]}).filter(e=>e),xt=o(26781),Mt=o(91888),Ft=(e,n)=>{var s;if(_t.g&&e&&null!=(s=ce.O.value)&&s.isDidomiConsentStringEncodingEnabled){var r=void 0;n&&(r={logs:n}),e=(0,it.Sd)(e);var i=_t.g.decode(e,r),o=Dt(i.purposes_optin,Vt),a=Dt(i.purposes_optout,Vt),u=Dt(i.vendors_optin,Nt),l=Dt(i.vendors_optout,Nt),d=void 0;return Mt.E.value&&Mt.E.value.length>0&&(d=xt.w6({vendors:u,vendors_li:l},Mt.E.value)),(0,t.A)({user_id:i.user_id,created:i.created,updated:i.updated,sync:i.sync,regulation_id:i.regulation_id,vendors:u,purposes:o,vendors_li:l,purposes_li:a},d?{ac:d}:{})}},zt=o(3330),jt=o(26104),Wt=o(4609),Gt=o(418),Jt=(0,V.vP)(null),qt=(0,V.EW)(()=>"false"!==Jt.value),Kt=(0,V.vP)(null),Ht=(0,V.vP)(!1),Zt=(0,V.vP)(0),Yt=(0,V.vP)(0),$t=(0,V.vP)(0),Qt=(0,V.vP)(!1),Xt=(0,V.EW)(()=>{var e;return(null==(e=Wt.G.value)?void 0:e.thirdParty.enabled)&&!1!==qt.value&&!0!==Ht.value}),en=(0,V.EW)(()=>{var e=Xt.value?1:0;return Zt.value===e+Yt.value+$t.value}),tn=o(72985),nn=o(16691);class sn{constructor(e){this.callbacks={},this.timeoutCalled=!1;var t=document.createElement("iframe");t.setAttribute("src",e),t.setAttribute("id","iframe-cookies-group"),t.style.display="none",document.body.appendChild(t),this.iframe=t}isNotResponding(){return this.timeoutCalled}getType(){return"group"}getTokens(e,t,n,s,r,i,o,a,u){this.iframe.onload=()=>{this.postMessageToIframe("getTokens",{name:e,type:t,storageSources:n,isSameSiteRequired:s,TCFVersion:r,expiry:i,secure:o},a,u)}}setToken(e,t,n,s,r,i){this.postMessageToIframe("setToken",{name:e,value:t,storageSources:n,isSameSiteRequired:s,expiry:r,secure:i})}deleteToken(e){this.postMessageToIframe("deleteToken",{name:e})}postMessageToIframe(e,t,n,s){if(void 0===s&&(s=4e3),this.iframe&&!this.isNotResponding()){var r=(0,nn.A)(),i=this.getType();this.iframe.contentWindow.postMessage({__didomiCall:{call:e,callId:r,type:i,params:t}},"*"),n&&(this.callbacks[r]=n,setTimeout(()=>{this.callbacks[r]&&(this.callbacks[r](new Error("Timeout")),delete this.callbacks[r],this.timeoutCalled=!0)},s))}}receiveMessageFromIframe(e){if(e&&e.data){var t;try{t="string"==typeof e.data?JSON.parse(e.data):e.data}catch(e){return}if(t.__didomiCall){var n=t.__didomiCall;this.callbacks[n.callId]&&this.getType()===n.type&&(this.callbacks[n.callId](null,n.params),delete this.callbacks[n.callId])}}}}var rn=function(e,t,n){void 0===t&&(t={}),Zt.value+=1,e&&"Timeout"===e.message?(Yt.value+=1,Ht.value=!0,!Qt.value&&en.value&&(Qt.value=!0,n())):(t.didomi_accept_cookie?(0,At.S4)({didomiToken:t.didomi_token,iabConsentString:t.iab_consent_string}):($t.value+=1,(()=>{var e,t,n,s;(0,Xe.NT)("didomi_third_party_cookie",!1,null==(e=Wt.G.value)?void 0:e.thirdParty.customDomain,null==(t=Wt.G.value)?void 0:t.sources,!1,!1,Gt.t.value.durationInDays,null==(n=Wt.G.value)?void 0:n.secure);var r=(0,Xe.Rf)("didomi_third_party_cookie",null==(s=Wt.G.value)?void 0:s.sources);Jt.value=void 0===r?"false":r})()),!Qt.value&&en.value&&(Qt.value=!0,n()))},on=e=>{var t,n,r,i;Xt.value?(window.addEventListener?window.addEventListener("message",e=>{var t;return null==(t=Kt.value)?void 0:t.receiveMessageFromIframe(e)},!1):window.attachEvent("onmessage",e=>{var t;return null==(t=Kt.value)?void 0:t.receiveMessageFromIframe(e)}),Kt.value=(()=>{var e,t=(0,s.M)("globalCookiesProtocol"),n=null==(e=Wt.G.value)?void 0:e.thirdParty.customDomain,r=t+"://"+(0,ze.b5)(n)+"/global-cookies/"+(0,ze.HF)()+"/global-cookies."+(0,ze.HF)()+".html";return new sn(r)})(),null==(t=Kt.value)||t.getTokens(tn.x.value,"group",null==(n=Wt.G.value)?void 0:n.sources,null==(r=Wt.G.value)?void 0:r.sameSiteRequired,pe.q.value.majorVersion,Gt.t.value.durationInDays,null==(i=Wt.G.value)?void 0:i.secure,(t,n)=>rn(t,n,e))):e()},an=(e,t)=>{var n,s,r,i,o,a,u,l;e&&(null==(n=Kt.value)||n.setToken(tn.x.value,e,null==(s=Wt.G.value)?void 0:s.sources,null==(r=Wt.G.value)?void 0:r.sameSiteRequired,Gt.t.value.durationInDays,null==(i=Wt.G.value)?void 0:i.secure));t&&(null==(o=Kt.value)||o.setToken(jt.O.value,t,null==(a=Wt.G.value)?void 0:a.sources,null==(u=Wt.G.value)?void 0:u.sameSiteRequired,Gt.t.value.durationInDays,null==(l=Wt.G.value)?void 0:l.secure))},un=o(90013),ln=e=>{var{token:t,regulationId:n,apply:s}=e;return!s||(!t||0===t.regulation_id&&void 0===n||t.regulation_id===n)},dn=o(49049),cn=o(76638),pn=e=>{var t={};return null==e||e.map(e=>{t[e.id]={id:e.id,purposes:e.purposeIds,flexiblePurposes:e.flexiblePurposeIds,specialPurposes:e.specialPurposeIds,legIntPurposes:e.legIntPurposeIds,features:e.featureIds,specialFeatures:e.specialFeatureIds,name:"",urls:[],dataRetention:{},dataDeclaration:[]}}),t},vn=e=>{var n={};return null==e||e.map(e=>{n[e.id]=(0,t.A)({},e,{name:"",description:"",illustrations:[]})}),n},hn=(0,V.EW)(()=>{if(!Be.A.value)return null;var e,t,n={vendorListVersion:Be.A.value.vendorListVersion,lastUpdated:Be.A.value.lastUpdated,gvlSpecificationVersion:Be.A.value.gvlSpecificationVersion,tcfPolicyVersion:Be.A.value.tcfPolicyVersion,purposes:vn(Be.A.value.purposes),specialPurposes:vn(Be.A.value.specialPurposes),features:vn(Be.A.value.features),specialFeatures:vn(Be.A.value.specialFeatures),stacks:(e=Be.A.value.stacks,t={},null==e||e.map(e=>{t[e.id]={id:e.id,name:"",description:"",purposes:e.purposeIds,specialFeatures:e.specialFeatureIds}}),t),vendors:pn(Be.A.value.vendors)};return new cn.aI(n)}),fn=(0,V.vP)(null),gn=()=>{fn.value=null};class mn extends v.A{initStorages(e){on(()=>{var t;null!=(t=ce.O.value)&&t.isDidomiConsentStringEncodingEnabled&&!_t.g?(0,B.on)("ced.loaded",()=>{e()}):e()})}getNewToken(){var e=(0,zt.x)(),t=(0,ze.bs)();return e.created=t,e.updated=t,e}createNewToken(e){void 0===e&&(e=null);var t=this.getNewToken();return e&&(0,l.hZ)(t,"user_id",e),this.resetIABToken(),this.setTokenToStorages(t),t}initStoreFromStorage(){var e,t,n,s=this.getTokenFromCookies(),r=s.token,i=s.iabConsentString,o=s.didomiTokenCreatedFromIABToken,a=s.userAuthParams,u=s.signature,l=s.dcsUserId;return De(r)||!ln({token:r,regulationId:null==(e=J.r.value)?void 0:e.id,apply:(null==(t=ce.O.value)?void 0:t.isDidomiConsentStringEncodingEnabled)&&2===(null==(n=ce.O.value)?void 0:n.version)&&!un.I.value})?(r=this.reset(r.user_id),o=!1):r&&o?this.setTokenToStorages(r,!0,a,{signature:u,dcsUserId:l}):r?(a&&ut(a),this.services.SignatureService.setSignature({signature:u,dcsUserId:l}),this.services.LocalStoreService.updateConsentToken(r),(0,S.R)(i)):r=this.createNewToken(),un.I.value&&(this.setTokenToStorages(r,!1),this.services.SignatureService.sign()),this.syncLocalAndThirdPartyStorage(),{token:r,didomiTokenCreatedFromIABToken:o}}setTokenToStorages(e,t,n,s){void 0===t&&(t=!0),void 0===n&&(n=null),void 0===s&&(s=null),t&&(e=this.updateToken(e));var r=this.createConsentCookiesFromToken(e);return this.setCookies(r),n&&ut(n),s&&this.services.SignatureService.setSignature(s),this.services.LocalStoreService.updateConsentToken(e),(0,S.R)(r.iabConsentString),e}flushTokenToStorage(){var e=(0,l.Go)(C.II.value);this.setTokenToStorages(e,!1)}updateToken(e){var t=(0,l.Go)(e),n=(0,ze.bs)();return t.updated=n,(0,W.v)(t.created)&&(t.created=n),t}getEncode(){var e;if(null!=(e=ce.O.value)&&e.isDidomiConsentStringEncodingEnabled)return Bt}getDecode(){var e;if(null!=(e=ce.O.value)&&e.isDidomiConsentStringEncodingEnabled)return Ft}createConsentCookiesFromToken(e){var n,s,i,o,a,u=(0,l.Go)(e),d=null,c=(0,l.Jt)(u,"vendors.enabled")||[],p=(0,l.Jt)(u,"vendors.disabled")||[],v=(0,l.Jt)(u,"vendors_li.enabled")||[],f=(0,l.Jt)(u,"vendors_li.disabled")||[];if(c.length||p.length||v.length||f.length){var g;d=fn.value?fn.value:Me.encodeToken(u,{consentLanguage:r.H.value});var m=xt.w6((0,l.Go)(u),Mt.E.value);null!=(g=ce.O.value)&&g.isDidomiConsentStringEncodingEnabled||(u=(e=>{var n,s=null==(n=dn.l.value)?void 0:n.map(e=>{var{id:t}=e;return t}),r=e=>-1===s.indexOf(e);return(0,t.A)({},e,{vendors:{enabled:e.vendors.enabled.filter(r),disabled:e.vendors.disabled.filter(r)},vendors_li:{enabled:e.vendors_li.enabled.filter(r),disabled:e.vendors_li.disabled.filter(r)}})})(u)),m&&(u.ac=m)}var b=null==(n=Ct.value)?void 0:n.filter(e=>!It.value.includes(e));return null!=(s=ce.O.value)&&s.isDidomiConsentStringEncodingEnabled&&(b=[...b,...Object.values(h.H2)]),(0,Te.h2)({token:u,regulationId:null==(i=J.r.value)?void 0:i.id,apply:(null==(o=ce.O.value)?void 0:o.isDidomiConsentStringEncodingEnabled)&&2===(null==(a=ce.O.value)?void 0:a.version)}),{iabConsentString:d,didomiTokenAsBase64:(0,Te.RE)(u,b,this.getEncode())}}setCookies(e){var t,n,s,{iabConsentString:r,didomiTokenAsBase64:i}=e,o=this.store.getState();if(null!=(t=ce.O.value)&&t.isDidomiConsentStringEncodingEnabled){var a,u,l=(e=>e.signature.dcsUserId)(o)||"",d=vt(o)?"~"+vt(o):"",c="",p=null!=(a=C.II.value)&&a.sync?new Date(null==(u=C.II.value)?void 0:u.sync).getTime():"";lt(o)&&(n=yt.value,s=(0,Xe.yN)(n),c=Pt.o4.btoa(JSON.stringify(s))),i=i+"."+l+"."+c+"."+p+d}return x("setCookies",()=>{Xt.value?(an(i,r),(0,wt.M9)({didomiToken:null,iabConsentString:r})):(0,wt.M9)({didomiToken:i,iabConsentString:r})})()}getCookies(){return x("getCookies",()=>null!==At.r5.value.didomiToken||null!==At.r5.value.iabConsentString?At.r5.value:wt.lB.value)(this.getNewToken())}getTokenFromCookies(){var e,n,s=this.getCookies(),r=null;s.iabConsentString&&((r=Me.decodeTCString(s.iabConsentString,{checkCMPId:!1===Xt.value,defaultCMPId:M.a.defaultCMPID,returnTCModel:!0}))||console.error("Didomi - Failed to decode TCF consent string from cookies: "+s.iabConsentString));var i=(0,it.Sd)(s.didomiToken)?(0,Te.qQ)((0,it.Sd)(s.didomiToken),this.getDecode()):null,o=null,a=(0,it.kz)(s.didomiToken),u=(0,it.yE)(s.didomiToken),d=(0,it.dD)(s.didomiToken),c=(0,it.H3)(s.didomiToken);null!=(e=ce.O.value)&&e.isDidomiConsentStringEncodingEnabled&&a&&(o=(e=>{try{var t=JSON.parse(Pt.o4.atob(e));return(0,Xe.J_)(t)}catch(e){return console.error("Didomi - Error while parsing user auth parameters cookie"),{}}})(a));var p=(0,l.Jt)(i,"ac"),v=null;null!=(n=ce.O.value)&&n.isDidomiConsentStringEncodingEnabled||(v=p?(e=>e?xt.At(e,dn.l.value):null)(p):null);var h={didomiToken:i,iabToken:r,addtlConsent:v},f=this.mergeTokens(h.didomiToken,h.iabToken,h.addtlConsent),g=f?(0,t.A)({},f,{sync:u||f.sync}):null;return{didomiTokenCreatedFromIABToken:f&&h.iabToken&&!h.didomiToken,token:g,iabConsentString:r?s.iabConsentString:null,userAuthParams:o,signature:d,dcsUserId:c}}mergeTokens(e,t,n){if(!e&&!t&&!n)return null;var s,r,i,o,a,u,d,c=(0,l.Go)(e)||(0,zt.x)();if(t){var p,v,f=(d=Object.keys(null==(u=hn.value)?void 0:u.vendors).map(e=>parseInt(e)),Math.max(...d)),g=null==(p=Ct.value)?void 0:p.filter(e=>!It.value.includes(e)),m=null==(a=null==(s=ht.E.value)||null==(r=s.filter(e=>"iab"!==e.namespace))?void 0:r.filter(e=>(0,h.br)(e)).map(e=>(0,h.in)(e)),v=null==(i=Be.A.value)||null==(o=i.vendors)?void 0:o.filter(e=>!a.includes(e.id)))?void 0:v.filter(e=>e.id<=f).map(e=>e.id),b=(0,l.Jt)(c,"vendors.enabled",[]).filter(e=>-1===m.indexOf(e)),I=(0,l.Jt)(c,"vendors.disabled",[]).filter(e=>-1===m.indexOf(e)),y=(0,l.Jt)(c,"vendors_li.enabled",[]).filter(e=>-1===m.indexOf(e)),S=(0,l.Jt)(c,"vendors_li.disabled",[]).filter(e=>-1===m.indexOf(e)),C=(0,l.Jt)(c,"purposes.enabled",[]).filter(e=>!Ct.value.includes(e)),w=(0,l.Jt)(c,"purposes.disabled",[]).filter(e=>!Ct.value.includes(e)),A=(0,l.Jt)(c,"purposes_li.enabled",[]).filter(e=>!g.includes(e)),_=(0,l.Jt)(c,"purposes_li.disabled",[]).filter(e=>!g.includes(e)),{enabledIABvendors:P,disabledIABvendors:E,enabledIABpurposes:O,disabledIABpurposes:k,enabledLIIABvendors:L,disabledLIIABvendors:T,enabledLIIABpurposes:D,disabledLIIABpurposes:U}=(e=>{var t,n=Me.tcModelToToken(e,null==(t=ce.O.value)?void 0:t.isDidomiConsentStringEncodingEnabled);return{enabledIABvendors:n.vendors.enabled,disabledIABvendors:n.vendors.disabled,enabledIABpurposes:n.purposes.enabled,disabledIABpurposes:n.purposes.disabled,enabledLIIABvendors:n.vendors_li.enabled,disabledLIIABvendors:n.vendors_li.disabled,enabledLIIABpurposes:n.purposes_li.enabled,disabledLIIABpurposes:n.purposes_li.disabled}})(t),R=(0,l.Jt)(n,"vendors.enabled",[]),B=(0,l.Jt)(n,"vendors.disabled",[]),V=(0,l.Jt)(n,"vendors_li.enabled",[]),N=(0,l.Jt)(n,"vendors_li.disabled",[]);(0,l.hZ)(c,"vendors.enabled",[...b,...P,...R]),(0,l.hZ)(c,"vendors.disabled",[...I,...E,...B]),(0,l.hZ)(c,"vendors_li.enabled",[...y,...L,...V]),(0,l.hZ)(c,"vendors_li.disabled",[...S,...T,...N]),(0,l.hZ)(c,"purposes.enabled",[...C,...O]),(0,l.hZ)(c,"purposes.disabled",[...w,...k]),(0,l.hZ)(c,"purposes_li.enabled",[...A,...D.filter(e=>!It.value.includes(e))]),(0,l.hZ)(c,"purposes_li.disabled",[..._,...U.filter(e=>!It.value.includes(e))])}return c}syncLocalAndThirdPartyStorage(){if(Xt.value){var e=wt.lB.value.iabConsentString;if(e){var t=At.r5.value.iabConsentString;t&&e!==t&&(0,wt.M9)({didomiToken:null,iabConsentString:t})}}}reset(e){return(0,C.wJ)(),this.createNewToken(e)}resetIABToken(){x("resetCookies",()=>{var e;(0,wt.dZ)(),Xt.value&&(null==(e=Kt.value)||e.deleteToken(jt.O.value))})()}getIdFromConsentToken(){var e;return(null==(e=C.II.value)?void 0:e.user_id)||null}}class bn extends mn{initStoreFromStorage(){var e,t,n,s=this.getTokenFromCookies().token;return De(s)||!ln({token:s,regulationId:null==(e=J.r.value)?void 0:e.id,apply:(null==(t=ce.O.value)?void 0:t.isDidomiConsentStringEncodingEnabled)&&2===(null==(n=ce.O.value)?void 0:n.version)&&!un.I.value})?s=this.reset(s.user_id):s?(0,C.vY)(s):s=this.createNewToken(),un.I.value&&(this.setTokenToStorages(s,!1),this.services.SignatureService.sign()),{token:s}}getTokenFromCookies(){var e=this.getCookies();return{token:e.didomiToken?(0,Te.qQ)(e.didomiToken,this.getDecode()):null}}createNewToken(e){void 0===e&&(e=null);var t=this.getNewToken();return e&&(0,l.hZ)(t,"user_id",e),this.setTokenToStorages(t),t}setTokenToStorages(e,t){var n,s,r;void 0===t&&(t=!0),t&&(e=this.updateToken(e));var i=(0,l.Go)(e);(0,Te.td)(i,"purposes"),(0,Te.td)(i,"purposes_li"),(0,Te.td)(i,"vendors"),(0,Te.td)(i,"vendors_li");var o=this.getEncode();return(0,Te.h2)({token:i,regulationId:null==(n=J.r.value)?void 0:n.id,apply:(null==(s=ce.O.value)?void 0:s.isDidomiConsentStringEncodingEnabled)&&2===(null==(r=ce.O.value)?void 0:r.version)}),this.setCookies({didomiTokenAsBase64:o?o(i):Pt.o4.btoa(JSON.stringify(i))}),(0,C.vY)(e),e}getEncode(){var e;if(null!=(e=ce.O.value)&&e.isDidomiConsentStringEncodingEnabled)return Bt}getDecode(){var e;if(null!=(e=ce.O.value)&&e.isDidomiConsentStringEncodingEnabled)return Ft}setCookies(e){var{didomiTokenAsBase64:t}=e;return x("setCookies",()=>{Xt.value?an(t):(0,wt.M9)({didomiToken:t,iabConsentString:null})})()}}var In=()=>q.a.value.byLegalBasis.consent.vendors.enabled,yn=()=>q.a.value.byLegalBasis.li.vendors.enabled,Sn=()=>q.a.value.byLegalBasis.li.purposes.enabled,Cn=()=>q.a.value.byLegalBasis.consent.purposes.enabled,wn=(0,f.Mz)([Sn,Cn],(e,t)=>{var n=(0,g.$)([...t,...e,...I.T.value]),s=A.t.value.purposeIds.filter(e=>-1===n.indexOf(e));return{enabled:n,disabled:s}}),An=(0,f.Mz)([In,()=>q.a.value.byLegalBasis.consent.vendors.disabled,yn,()=>q.a.value.byLegalBasis.li.vendors.disabled],(e,t,n,s)=>(0,g.$)([...e,...t,...n,...s,...b.R.value])),_n=(0,f.Mz)([Cn,An],(e,t)=>{var n=t.filter(t=>{var n;return!(null==(n=m.o.value)||!n[t])&&(0,y.Z)((0,l.gi)(m.o.value[t].purposeIds),[...e,...I.T.value])}),s=t.filter(e=>-1===n.indexOf(e));return{enabled:n,disabled:s}}),Pn=(0,f.Mz)([Sn,yn,An],(e,t,n)=>{var s=t.filter(t=>{var n;return!(null==(n=m.o.value)||!n[t])&&(0,y.Z)((0,l.gi)(m.o.value[t].legIntPurposeIds),[...e,...I.T.value])}),r=n.filter(e=>-1===s.indexOf(e));return{enabled:s,disabled:r}}),En=(0,f.Mz)([Cn,Sn,In,yn,An],(e,t,n,s,r)=>{var i=(0,g.$)([...n,...s]).filter(n=>{var s;if(null!=(s=m.o.value)&&s[n]){var r=[...(0,l.gi)(m.o.value[n].purposeIds),...(0,l.gi)(m.o.value[n].legIntPurposeIds)],i=[...e,...t,...I.T.value];return(0,y.Z)(r,i)}return!1}),o=r.filter(e=>-1===i.indexOf(e));return{enabled:i,disabled:o}}),On=(0,f.Mz)([wn,En,_n,Pn],(e,t,n,s)=>({purposes:{consent:{enabled:q.a.value.byLegalBasis.consent.purposes.enabled,disabled:q.a.value.byLegalBasis.consent.purposes.disabled},legitimate_interest:{enabled:q.a.value.byLegalBasis.li.purposes.enabled,disabled:q.a.value.byLegalBasis.li.purposes.disabled},global:e,essential:I.T.value},vendors:{consent:{enabled:q.a.value.byLegalBasis.consent.vendors.enabled,disabled:q.a.value.byLegalBasis.consent.vendors.disabled},legitimate_interest:{enabled:q.a.value.byLegalBasis.li.vendors.enabled,disabled:q.a.value.byLegalBasis.li.vendors.disabled},global:t,global_consent:n,global_li:s},user_id:C.II.value.user_id,created:C.II.value.created,updated:C.II.value.updated})),kn=o(63364),Ln=e=>e.mixedRegulationPreferences.purposesState,Tn=((0,f.Mz)(()=>kn.b.value,e=>e.length>0),o(50513));class Dn extends se{setUserMixedConsentStatus(e,t,n,s,r,i,o,a,u){var d=(0,l.Go)(C.II.value),c=(0,l.Go)(d),p=I.T.value,v=e=>!p.includes(e);c.vendors_li={enabled:r,disabled:i},c.purposes={enabled:e.filter(v),disabled:t.filter(v)},c.purposes_li={enabled:n.filter(v),disabled:s.filter(v)},o&&(c.created=o),a&&(c.updated=a);var h=!Boolean(o)&&!Boolean(a);(0,l.bD)(d,c)&&!G.value||(this.actions.dropSignature(),c=this.services.StorageService.setTokenToStorages(c,h),this.sendEvents(c,!1,u))}setUserStatus(e){var t=(0,l.Jt)(e,"purposes.consent.enabled",[]),n=(0,l.Jt)(e,"purposes.consent.disabled",[]),s=(0,l.Jt)(e,"purposes.legitimate_interest.enabled",[]),r=(0,l.Jt)(e,"purposes.legitimate_interest.disabled",[]),i=(0,l.Jt)(e,"vendors.legitimate_interest.enabled",[]),o=(0,l.Jt)(e,"vendors.legitimate_interest.disabled",[]),a=(0,l.Jt)(e,"created"),u=(0,l.Jt)(e,"updated"),d=(0,l.Jt)(e,"action","external");this.setUserMixedConsentStatus(t,n,s,r,i,o,a,u,d)}getUserStatus(){return(0,l.Go)(On(this.store.getState()))}setCurrentUserStatus(e){var t=(0,l.Go)(C.II.value),n=A.t.value.purposeIdsBasedOnLI,s=A.t.value.purposeIdsBasedOnConsent,r=z.C.value,i={};for(var o of Object.keys(r))i[r[o]]=o;var a=te.H.value.operatorIdsWithAtLeastOneOptoutPurpose;if(!(0,j.q7)(e.vendors,a,i))return!1;if(!(0,j.q7)(e.purposes,[...s,...n,...I.T.value]))return!1;var u=(0,j.jh)({globalUserStatus:e.vendors,includeIds:a,reversedIdsToDidomiIdsMap:i}),d=(0,j.jh)({globalUserStatus:e.purposes,includeIds:s,parseNumIds:!1}),c=(0,j.jh)({globalUserStatus:e.purposes,includeIds:n,parseNumIds:!1}),p=t.created,v=(new Date).toISOString(),h=e.action||"external";return this.setUserMixedConsentStatus(d.enabled,d.disabled,c.enabled,c.disabled,u.enabled,u.disabled,p,v,h),this.setStateFromToken(),ke.value&&this.services.NoticeService.hide(),(0,j.y3)(C.II.value,t)}setStateFromToken(){var e,t,n=this.getUserStatus(),s=n.purposes.consent,r=n.purposes.legitimate_interest,i=n.vendors.legitimate_interest;s.enabled.forEach(e=>{this.actions.setSPIPurposesState(e,!0)}),s.disabled.forEach(e=>{this.actions.setSPIPurposesState(e,!1)}),r.enabled.forEach(e=>{this.actions.setPurposeState(e,!0)}),r.disabled.forEach(e=>{this.actions.setPurposeState(e,!1)}),i.enabled.forEach(e=>{this.actions.setVendorState(e,!0)}),i.disabled.forEach(e=>{this.actions.setVendorState(e,!1)}),this.actions.setAllSPIUseState(this.globalStateFromGranularChoices(s.enabled,s.disabled)),this.actions.setAllVendorsState(this.globalStateFromGranularChoices(i.enabled,i.disabled));var o=this.store.getState(),a=Ln(o);null==(e=Se.v.value)||null==(t=e.categories)||t.forEach(e=>{var t=(0,Tn.c)(e);this.actions.setCategoryState(t.id,(0,g.d)(t.children.map(e=>a[e.purposeId])))})}globalStateFromGranularChoices(e,t){if(!(e.length>0&&t.length>0))return e.length>0&&0===t.length||!(0===e.length&&t.length>0)&&void 0}saveUserChoices(){var e=this.store.getState(),t=(e=>e.mixedRegulationPreferences.spiPurposesState)(e),n=Ln(e),s=(e=>e.mixedRegulationPreferences.vendorsState)(e),r=new d.A(this.getUserStatus.bind(this),this.setUserStatus.bind(this),"click");Object.keys(t).forEach(e=>{!0===t[e]?r.enablePurpose(e):r.disablePurpose(e)}),Object.keys(n).forEach(e=>{!0===n[e]?r.enablePurposeLegitimateInterest(e):r.disablePurposeLegitimateInterest(e)}),Object.keys(s).forEach(e=>{!0===s[e]?r.enableVendorLegitimateInterests(e):r.disableVendorLegitimateInterests(e)}),r.commit()}setUserAgreeToAll(e){var t,n=A.t.value.purposeIdsBasedOnLI;if(0!==n.length&&null!=(t=te.H.value.operatorIdsWithAtLeastOneOptoutPurpose)&&t.length){var s=new d.A(this.getUserStatus.bind(this),this.setUserStatus.bind(this),e);s.enablePurposesLegitimateInterests(...n),s.enableVendorsLegitimateInterests(...te.H.value.operatorIdsWithAtLeastOneOptoutPurpose),s.commit()}}}var Un=e=>e.replace(/&/g,"&").replace(//g,">").replace(/'/g,"'"),Rn=e=>{if("object"==typeof e){var t=JSON.stringify(e);return JSON.parse(Un(t))}return"string"==typeof e?Un(e):e};function Bn(e){return Array.isArray(e)?e.map(e=>Rn(e)):"string"==typeof e?Rn(e):e}function Vn(e,t,n,s){if(s&&s.data){var r,i="string"==typeof s.data;try{r=i?JSON.parse(s.data):s.data}catch(e){return}if(r[e]){var o=r[e];n(o.command,Bn(o.parameter),(e,n)=>{var r={[t]:{returnValue:e,success:n,callId:o.callId}};s.source&&"function"==typeof s.source.postMessage?s.source.postMessage(i?JSON.stringify(r):r,"*"):window.postMessage(i?JSON.stringify(r):r,"*")})}}}function Nn(e,t,n,s){if(window.addEventListener?window.addEventListener("message",Vn.bind(this,e,t,n),!1):window.attachEvent("onmessage",Vn.bind(this,e,t,n)),window.DidomiSanitizing={sanitizeString:Bn},Array.isArray(s)&&s.length>0)for(var r of s)n(r.command,Bn(r.parameter),r.callback,r.version,!0)}function xn(e){return!0===e?"Y":"N"}class Mn{constructor(){this.initialized=!1,this.uspSignal={ccpaApplies:!1,noticeDisplayed:!1,doNotSell:!1,lspa:!1,string:null}}init(e,t,n,s){this.initialized||(this.initialized=!0,this.setUSPData(e,t,n,s),window.__uspapi=this.handleCommand.bind(this),Nn("__uspapiCall","__uspapiReturn",this.handleCommand.bind(this),window.__uspapiBuffer))}getUSPData(){return{version:1,uspString:this.uspSignal.string}}handleCommand(e,t,n){if("function"==typeof n&&"getUSPData"===e)n(this.getUSPData(t),!0)}setDoNotSellStatus(e){this.setUSPData(this.uspSignal.ccpaApplies,this.uspSignal.noticeDisplayed,e,this.uspSignal.lspa)}setUSPData(e,t,n,s){this.uspSignal.ccpaApplies=e,this.uspSignal.noticeDisplayed=t,this.uspSignal.doNotSell=n,this.uspSignal.lspa=s,this.uspSignal.ccpaApplies?this.uspSignal.string="1"+xn(this.uspSignal.noticeDisplayed)+xn(this.uspSignal.doNotSell)+xn(this.uspSignal.lspa):this.uspSignal.string="1---"}}class Fn extends v.A{constructor(e,t,n){super(e,t,n),this.USPAPI=new Mn}run(){var e;this.USPAPI.init("ccpa"===(null==(e=J.r.value)?void 0:e.name),!0,this.getDoNotSellStatus(),!0===(0,l.Jt)(this.store.getState(),"website.regulations.ccpa.lspa"))}getDoNotSellStatus(){var e;return!0===(null==(e=C.II.value)?void 0:e.dns)}setDoNotSellStatus(e){if(this.getDoNotSellStatus()!==e){var t=(0,l.Go)(C.II.value);t.dns=e,this.services.StorageService.setTokenToStorages(t),this.USPAPI.setDoNotSellStatus(e),this.services.ConsentService.sendEvents(C.II.value,!1,"click")}}getDoNotSellNoticeDate(){var e;return null==(e=C.II.value)?void 0:e.dnsd}updateDoNotSellNoticeDate(){var e=(0,l.Go)(C.II.value);e.dnsd=(new Date).toISOString(),this.services.StorageService.setTokenToStorages(e)}shouldShowNotice(){return!this.getDoNotSellNoticeDate()}}class zn extends Fn{run(){var e,t,n;this.USPAPI.init("ccpa"===(null==(e=J.r.value)?void 0:e.name),!0,this.getDoNotSellStatus(),!0===(null==(t=J.r.value)||null==(n=t.ccpa)?void 0:n.lspa))}}var jn=(e,t,n)=>{e.StorageService=new bn(t,n,e),e.ConsentService=new Dn(t,n,e),e.MixedRegulationService.run()},Wn=(e,t,n)=>{var s;"ccpa"===(null==(s=J.r.value)?void 0:s.name)&&(e.CCPAService=new zn(t,n,e))};class Gn extends Ke{handleMixedRegulationConsentNoticeStatus(){we.p.value||(ke.value?this.services.ConsentService.setStateFromToken():ie.x.value.isEnabled?ie.x.value.shouldShowNotice&&this.services.NoticeService.show():q.a.value.hasMadeAnyChoice||this.services.NoticeService.show())}shouldMixedRegulationNoticeBeShown(){return!we.p.value&&(!ke.value&&ie.x.value.shouldShowNotice)}_showNoticeAndPreferences(){var e;this.services.NoticeService.show(),null!=(e=Se.v.value)&&e.showWhenConsentIsMissing&&this.services.PreferencesService.show()}determineConsentNoticeStatus(){var e,t,n,s,r,i,o,a;if("mixed"===(null==(e=J.r.value)||null==(t=e.group)?void 0:t.name))this.handleMixedRegulationConsentNoticeStatus();else if("optout"===(null==(n=J.r.value)||null==(s=n.group)?void 0:s.name)&&this.services.CCPAService.shouldShowNotice())this.services.NoticeService.show();else if("optin"===(null==(r=J.r.value)||null==(i=r.group)?void 0:i.name)&&this.shouldReconsentBeEnforced())this.resetAllUserChoicesToDefaults(),this._showNoticeAndPreferences();else if("optin"===(null==(o=J.r.value)||null==(a=o.group)?void 0:a.name)&&this.shouldConsentBeCollected())this._showNoticeAndPreferences();else{var u;this.services.NoticeService.hide(),null!=(u=Se.v.value)&&u.showWhenConsentIsMissing&&this.services.PreferencesService.hide()}}shouldNoticeBeShown(){var e,t,n,s,r,i;return"mixed"===(null==(e=J.r.value)||null==(t=e.group)?void 0:t.name)?this.shouldMixedRegulationNoticeBeShown():"optout"===(null==(n=J.r.value)||null==(s=n.group)?void 0:s.name)?this.services.CCPAService.shouldShowNotice():"optin"===(null==(r=J.r.value)||null==(i=r.group)?void 0:i.name)&&this.shouldConsentBeCollected()}}class Jn extends v.A{configure(e){var t,n,s;if(!e||"object"!=typeof e)return null;if("object"==typeof e.configByCountry&&null!=(t=le.h.value)&&t.country){var r=e.configByCountry[le.h.value.country.toUpperCase()];r&&(e=(0,l.or)(e,r))}if(e.privacyPolicyURL&&(0,l.hZ)(e,"website.privacyPolicyURL",e.privacyPolicyURL),e.website||e.app){var i=(0,l.or)(e.website,e.app);e.regulations&&(i.regulations=e.regulations),e.regulation&&(i.regulation=e.regulation),e.version&&(this.services.WebsiteService=new Gn(this.store,this.actions,this.services)),this.services.WebsiteService.configure(i)}("object"==typeof e.sync&&this.services.SyncService.configure(e.sync),e.notice&&this.services.NoticeService.configure(e.notice),e.preferences)&&(this.services.PreferencesService.configure(e.preferences),"mixed"===(null==(n=e.regulation)||null==(s=n.group)?void 0:s.name)&&this.services.MixedRegulationService.configure(e.preferences));return this.services.ComponentsService.configure(e.components),this.services.EventsService.configure(e.events),(e.website||e.app)&&e.version&&((e,t,n)=>{var s,r,i,o;"optout"===(null==(s=J.r.value)||null==(r=s.group)?void 0:r.name)&&Wn(e,t,n),"mixed"===(null==(i=J.r.value)||null==(o=i.group)?void 0:o.name)&&jn(e,t,n)})(this.services,this.store,this.actions),e}}var qn,Kn=o(39838),Hn=function(e){void 0===e&&(e="en"),qn||((qn=document.querySelector("#didomi-host"))?Zn(qn,e):((qn=document.createElement("div")).id="didomi-host",Zn(qn,e),document.body.insertBefore(qn,document.body.firstChild)))},Zn=(e,t)=>{e&&e.setAttribute&&(e.classList.add("didomi-host"),e.setAttribute("data-nosnippet","true"),e.setAttribute("aria-hidden","true"),e.setAttribute("lang",t),e.setAttribute("data-lang-dir",(0,Kn.i)(t)))},Yn={ccpa:()=>o.e("ui-ccpa").then(o.bind(o,30550)),cpa:()=>o.e("ui-cpa").then(o.bind(o,32512)),ctdpa:()=>o.e("ui-ctdpa").then(o.bind(o,10896)),ctv:e=>o(75604)("./"+e+"/ctv/"),cpra:()=>o.e("ui-cpra").then(o.bind(o,67216)),vcdpa:()=>o.e("ui-vcdpa").then(o.bind(o,88437)),underage:()=>o.e("ui-underage").then(o.bind(o,3902)),web:e=>o(70460)("./"+e+"/web/")},$n=["1.0.0","2.0.0"],Qn=["cpra","dpdpa","fdbr","icdpa","mcdpa","nhpa","njdpa","ocpa","tdpsa","ucpa","mncdpa","modpa","ridtppa","incdpa","kcdpa","ndpa","tipa"],Xn={"1.0.0":[{module:"cpra",regulations:Qn},{module:"web",regulations:["gdpr"]},{module:"cpa",regulations:["cpa"]},{module:"vcdpa",regulations:["vcdpa"]},{module:"ctdpa",regulations:["ctdpa"]}],"2.0.0":[{module:"web",regulations:[...Qn,"cpa","ctdpa","gdpr","vcdpa"]}]},es=(0,V.vP)(null),ts=function(e,t){var s,r,i,{regulation:o}=void 0===t?{}:t;e||o?["ctv","web","underage"].includes(e)?es.value=e:es.value="ccpa"!==o?(e=>{var{version:t,regulation:n}=e,s=Xn[t].find(e=>{var{regulations:t}=e;return t.includes(n)});return s?s.module:null})({version:(i=null==(s=n.bK.value)||null==(r=s.ui)?void 0:r.version,$n.includes(i)?i:"1.0.0"),regulation:o}):o:es.value=null};class ns extends v.A{constructor(){super(...arguments),this._uiModule=null,this._postRenderActions=[]}componentWillMount(){this._postRenderActions=[]}reloadUIModule(e,t){var n,{show:s,postRenderAction:i}=void 0===t?{show:!1}:t;e&&this.isRendered()&&e!==es.value&&(qn&&qn.innerHTML&&(qn.innerHTML=""),null==(n=document.querySelector("#didomi-css"))||n.remove(),Hn(r.H.value),this._uiModule=null,this.actions.resetUI(),ts(e),s&&this.show(i))}show(e){void 0===e&&(e=()=>{}),this.isRendered()?e():(e&&this._postRenderActions.push(e),this.isLoading()||this.isLoaded()||this.loadUI(),this.scheduleRender())}scheduleRender(){this.isLoaded()?this.renderUI():this.isRenderScheduled()||(0,B.Oo)("ui.loaded",()=>{this.renderUI()})}preLoad(){this.isRendered()||this.isLoaded()||this.isLoading()||this.loadUI()}renderUI(){(0,B.Oo)("ui.mounted",()=>{this.actions.renderedUI(),this.completePostRenderActions().then(()=>{(0,B.Ic)("ui.ready")})});try{this._uiModule(qn,this.store,this.services)}catch(e){throw new Error("Error while rendering the SDK UI: Module not loaded")}}completePostRenderActions(){var t=this;return(0,e.A)(function*(){t._postRenderActions.length>0&&Promise.all(t._postRenderActions.map(function(){var t=(0,e.A)(function*(e){return"function"==typeof e?yield e():Promise.resolve()});return function(e){return t.apply(this,arguments)}}())).then(()=>{t._postRenderActions=[]})})()}isLoading(){return(0,l.Jt)(this.store.getState(),"ui.loading")||!1}isLoaded(){return(0,l.Jt)(this.store.getState(),"ui.loaded")||!1}isRenderScheduled(){return(0,B.ew)("ui.loaded")>=1&&!this.isRendered()}isRendered(){return(0,l.Jt)(this.store.getState(),"ui.rendered")||!1}loadUI(){return this.actions.loadingUI(),es.value?(e=>{var{module:t,locale:n}=e,s=Yn[t];return s?s(n):null})({module:es.value,locale:r.H.value}).then(e=>{this._uiModule=e.default,this.actions.loadedUI(),(0,B.Ic)("ui.loaded")}):null}}class ss extends v.A{constructor(e,t,n){super(e,t,n),this.componentsList=["didomi-base-checkbox","didomi-base-radio","didomi-block","didomi-button","didomi-card","didomi-cards","didomi-checkbox","didomi-checkboxes","didomi-container","didomi-email-login","didomi-header","didomi-image","didomi-modal","didomi-radio","didomi-radios","didomi-save","didomi-text","didomi-section","didomi-purpose","didomi-preference","didomi-container-headless"]}configure(e){e||(e={}),Array.from(document.querySelectorAll(this.componentsList.join(", "))).length>0&&(e.helpersEnabled="boolean"!=typeof e.helpersEnabled||e.helpersEnabled,e.componentsEnabled="boolean"!=typeof e.componentsEnabled||e.componentsEnabled),this.actions.setComponentsConfig(e)}getRemoteConsentsAndInitComponentsModule(){return this.services.RemoteConsentService.getRemoteConsentsFromAPI({mergeUsers:!0}).then(()=>{this.initComponentsModule(!0)})}initComponentsModule(e){void 0===e&&(e=!1);var t=(0,s.M)("apiPath"),n=Promise.resolve();if((0,l.Jt)(this.store.getState(),"components.helpersEnabled")||e){var i=(0,l.Jt)(this.store.getState(),"components.version");n=this.importComponentsByVersion(i).then(n=>(0,n.default)({locale:r.H.value,apiBaseURL:t,loadComponents:(0,l.Jt)(this.store.getState(),"components.componentsEnabled")||e,userId:st.J.value}).then(e=>{Object.assign(window.Didomi,e)}))}return n.then(()=>{(0,B.Ic)("components.loaded")})}importComponentsByVersion(e){return void 0===e&&(e=1),1===e?this.importComponentsV1():this.importComponents(e)}importComponentsV1(){return o.e("components").then(o.bind(o,5845))}importComponents(e){var t=(0,s.M)("pmpSdkPath");return new Promise((n,s)=>{var r,i=document.createElement("script");i.setAttribute("type","text/javascript"),i.setAttribute("async",!0),i.setAttribute("charset","utf-8"),i.setAttribute("src",t+"/v"+e+"/loader/index.js");var o=null==(r=he.U.value)?void 0:r.nonce;o&&i.setAttribute("nonce",o),window.Didomi.onPMPSDKLoaded=()=>{n({default:window.Didomi.initPMPSDK})},i.onerror=s,document.body.appendChild(i)})}}var rs=o(98587),is=(0,V.EW)(()=>{var e,t;return null!=(e=null==(t=n.bK.value)?void 0:t.sync)?e:{}}),os=["organizationUserId"],as={organizationUserId:"organization_user_id",organizationUserIdAuthAlgorithm:"organization_user_id_algorithm",organizationUserIdAuthSid:"organization_user_id_sid",organizationUserIdAuthSalt:"organization_user_id_salt",organizationUserIdAuthDigest:"organization_user_id_digest",organizationUserIdExp:"organization_user_id_exp",organizationUserIdIv:"organization_user_id_iv"};class us extends v.A{constructor(e,t,n){super(e,t,n)}configure(e){e&&((null==e.frequency||"number"!=typeof e.frequency||Number.isNaN(e.frequency)||e.frequency<21600)&&(e.frequency=21600),this.actions.setSyncConfig(e))}getMappedAuthorizationParameters(e){var t={};for(var n of Object.keys(as))e&&e[n]&&(t[as[n]]=e[n]);return t}getAuthorizationParameters(){var e=yt.value,t=(0,rs.A)(e,os);return this.getMappedAuthorizationParameters(t)}getSyncData(e){var{agent:n,apiPath:s,domain:r,organizationUserId:i,token:o,tcfcs:a,tcfv:u,timeout:l,authParams:d,synchronizedUsers:c,tokenUserAuthParams:p,signKey:v,regulations:h}=e;return new Promise(e=>{re.ajax({method:"POST",url:s+"/sync",body:JSON.stringify({source:{domain:r,key:ue.K.value,type:"sdk-web"},user:(0,t.A)({id:o.user_id,organization_user_id:i},d,{agent:n,token:{created:o.created,updated:o.updated,purposes:o.purposes,purposes_li:o.purposes_li,vendors:o.vendors,vendors_li:o.vendors_li},tcfcs:a,tcfv:u,synchronized_users:c,token_user:p,sign_key:v,regs:h})}),timeout:l,headers:{"Content-Type":"application/json"},cors:!0},(t,n)=>{if(201===t){var s;try{s=JSON.parse(n)}catch(t){return console.error("Didomi - Error while parsing sync response"),e({consents:null,errorMessage:"Error while parsing sync response"})}if(!1===s.synced){var{created:r,updated:i,consents:o}=s.user.token,a=i||r;e({consents:{created:a,updated:a,purposes:{consent:{enabled:o.purposes.enabled,disabled:o.purposes.disabled},legitimate_interest:{enabled:o.purposes_li.enabled,disabled:o.purposes_li.disabled}},vendors:{consent:{enabled:o.vendors.enabled,disabled:o.vendors.disabled},legitimate_interest:{enabled:o.vendors_li.enabled,disabled:o.vendors_li.disabled}},action:"sync"},tcfcs:s.user.tcfcs})}else e({consents:null,regenerateSignature:s.regenerate_signature})}else 404===t?e({consents:null,reset:!0}):(console.error("Didomi - Syncing HTTP error "+t),(0,B.KU)(t,"getSyncData"),e({consents:null,errorMessage:"Syncing HTTP error "+t}))})})}run(e,n){void 0===e&&(e=()=>{}),void 0===n&&(n=!0);var r=this.store.getState();if(pt(r)){var i,o,a,u,d,c=[];if(null!=(i=J.r.value)&&i.name)c.push(null==(d=J.r.value)?void 0:d.name);return this.getSyncData({agent:navigator.userAgent,apiPath:(0,s.M)("apiPath"),domain:ae(r),organizationUserId:null==(o=F.G.value)?void 0:o.organizationUserId,token:C.II.value,tcfcs:ve.X.value?S.M.value:null,tcfv:ve.X.value?pe.q.value.majorVersion:null,timeout:dt(r),authParams:this.getAuthorizationParameters(),synchronizedUsers:null==(a=F.G.value)||null==(u=a.synchronizedUsers)?void 0:u.map(e=>(0,t.A)({organization_user_id:e.organizationUserId},this.getMappedAuthorizationParameters(e))),tokenUserAuthParams:this.getMappedAuthorizationParameters(at.value),signKey:this.services.SignatureService.getCurrentSignatureKey(),regulations:c}).then(t=>{var s,r,i=!!t.consents,o=((e,t)=>()=>{if(e){var n=t();return n||console.log("Didomi - Do not acknowledge a sync via syncAcknowledged more than once"),n}return console.log("Didomi - Do not acknowledge a sync via syncAcknowledged when the user status has not been modified (statusApplied is false)"),!1})(i,this.services.EventsService.sendSyncAcknowledged.bind(this.services.EventsService)),a=(0,l.Go)(C.II.value);(a.sync=(new Date).toISOString(),(0,C.vY)(a),t.consents)?(is.value.useSyncedTcfcs&&t.tcfcs?(r=t.tcfcs,fn.value=r):gn(),this.services.ConsentService.setUserStatus(t.consents),this.services.StorageService.flushTokenToStorage(),this.services.SignatureService.sign()):t.reset&&null!=(s=he.U.value)&&s.ouidAsPrimaryIfPresent?this.services.StorageService.reset():t.regenerateSignature?this.services.SignatureService.sign():this.services.StorageService.flushTokenToStorage();if(gn(),t.errorMessage?(0,B.Ic)("sync.error",t.errorMessage):(0,B.Ic)("sync.done"),t.errorMessage){var u={statusApplied:!1,syncError:t.errorMessage,syncAcknowledged:()=>!1};e(u),n&&(0,B.sF)("sync.ready",u)}else{var d={statusApplied:i,syncAcknowledged:o};e(d),n&&(0,B.sF)("sync.ready",d)}}).catch(()=>{var t="Error while getting sync data";(0,B.Ic)("sync.error",t);var s={statusApplied:!1,syncError:t,syncAcknowledged:()=>!1};e(s),n&&(0,B.sF)("sync.ready",s)})}e({statusApplied:!1,syncAcknowledged:()=>!1}),n&&(0,B.sF)("sync.ready")}clearLastSyncDate(){C.II.value.sync&&((0,C.vY)((0,t.A)({},C.II.value,{sync:void 0})),this.services.StorageService.flushTokenToStorage())}}var ls=()=>{var e;return(null==(e=ft.$.value)?void 0:e.sort((e,t)=>{var n,s,r=null==(n=e.name)?void 0:n.toLowerCase(),i=null==(s=t.name)?void 0:s.toLowerCase();return ri?1:0}))||[]},ds=o(58975);class cs extends v.A{constructor(){super(...arguments),this.setInitialState=()=>{var e,t,n,s,r=null==(e=Se.v.value)||null==(t=e.categories)?void 0:t.map(e=>(0,Tn.c)(e)).filter(e=>"category"===e.type);this.actions.setCategories(r),r.forEach(e=>{this.actions.setCategoryState(e.id,ds.B.value.optout.default),e.children.filter(e=>"purpose"===e.type).map(e=>this.actions.setPurposeState(e.purposeId,ds.B.value.optout.default))}),null==(n=ls())||n.forEach(e=>this.actions.setVendorState(e.id,ds.B.value.optout.default)),this.actions.setAllVendorsState(ds.B.value.optout.default),null==(s=kn.b.value)||s.forEach(e=>this.actions.setSPIPurposesState(e,ds.B.value.optin.default)),this.actions.setAllSPIUseState(ds.B.value.optin.default)},this.setAgreeToAll=()=>{var e,t,n,s=this.store.getState();null==(e=Se.v.value)||null==(t=e.categories)||t.forEach(e=>{var t=(0,Tn.c)(e);this.actions.setCategoryState(t.id,!0),t.children.filter(e=>"purpose"===e.type).map(e=>this.actions.setPurposeState(e.purposeId,!0))}),(e=>e.mixedRegulationPreferences.vendors)(s).forEach(e=>this.actions.setVendorState(e.id,!0)),this.actions.setAllVendorsState(!0),null==(n=kn.b.value)||n.forEach(e=>this.actions.setSPIPurposesState(e,!0)),this.actions.setAllSPIUseState(!0)}}configure(e){e&&this.actions.setVendors(ls())}run(){this.setInitialState()}}class ps extends v.A{constructor(e,t,n){super(e,t,n)}setSignature(e){this.actions.setSignature(e)}updateCookie(e){var{signature:t,dcsUserId:n,trigger:s}=e;this.actions.setSignature({dcsUserId:n,signature:t}),this.services.StorageService.flushTokenToStorage(),"consent-changed"===s&&(0,B.Ic)("consent.changedwithsignature"),(0,B.Ic)("signature.consentsigned")}getSignatureParams(){var e=this.services.StorageService.getCookies(),t=(0,it.Sd)(null==e?void 0:e.didomiToken),n=F.G.value.dcsUser;return t&&n?{dcs:t,dcsUser:n.organizationUserId?this.services.SyncService.getMappedAuthorizationParameters(n):n}:null}sign(){var e;if(null!=(e=ce.O.value)&&e.signatureEnabled){var t=this.getSignatureParams();if(t){var n=this.store.getState();re.ajax({method:"POST",url:(0,s.M)("apiPath")+"/sign",body:JSON.stringify({source:{domain:ae(n),key:ue.K.value,type:"sdk-web"},dcs_user:t.dcsUser,dcs:t.dcs}),headers:{"Content-Type":"application/json"},cors:!0},(e,t)=>{if(201===e){var n=JSON.parse(t);this.updateCookie({dcsUserId:n.dcs_user,signature:n.signature,trigger:"consent-changed"})}else(0,B.KU)(e,"createSignatureSync"),(0,B.Ic)("signature.error","Signature generation fail "+e)})}}}getCurrentSignatureKey(){var e=this.getCurrentSignaturePropsFromCookie();return e.signature?e.signature[0]:null}getCurrentSignaturePropsFromCookie(){var e;if(null==(e=ce.O.value)||!e.signatureEnabled)return{};var t=this.services.StorageService.getCookies();if(null!=t&&t.didomiToken){var n=(0,it.dD)(t.didomiToken),s=(0,it.H3)(t.didomiToken);if(n&&s)return{signature:n,dcsUserId:s}}return{}}checkUnsignedConsent(){var e;if(null!=(e=ce.O.value)&&e.signatureEnabled&&F.G.value.dcsUser){var t=this.services.StorageService.getCookies();null!=t&&t.didomiToken&&t.didomiToken.indexOf("~")<0&&this.services.StorageService.reset()}}}var vs=e=>function(){try{e(...arguments)}catch(e){console.error("Didomi SDK - Error in didomiOnReady function.",e)}};function hs(e){if(!window.didomiOnReady||!0!==window.didomiOnReady.stub){if(Array.isArray(window.didomiOnReady))for(var t of window.didomiOnReady){if("function"==typeof t)vs(t)(e)}window.didomiOnReady={stub:!0,push:function(){for(var t=arguments.length,n=new Array(t),s=0;s{r(),delete s.resume},setTimeout(()=>{s.resume&&console.error("Didomi - 10 seconds timeout for loading custom SDK has expired")},1e4)):r()}function gs(e,t,n,s){if("function"==typeof s){H("__cmp-call");var r=e&&e[t];"function"!=typeof r?s(null,!1):s(r.apply(e,Array.isArray(n)?n:void 0),!0)}}function ms(e){Nn("__cmpCall","__cmpReturn",gs.bind(this,e),window.__cmpBuffer)}var bs,Is,ys=o(74921),Ss=(e,t)=>{"string"==typeof e&&"function"==typeof t&&(0,B.on)(e,t,{shouldYield:!0,shouldBeSafe:!0})},Cs=()=>{var e,t,n=(e=/didomi_country=([a-zA-Z]{2})/.exec(window.location.search),t=/didomi_region=([a-zA-Z]{2})/.exec(window.location.search),{country:e?e[1]:null,region:t?t[1]:null}),s={country:"string"==typeof window.didomiCountry&&2===window.didomiCountry.length?window.didomiCountry.toUpperCase():null,region:"string"==typeof window.didomiRegion&&window.didomiRegion.length>0?window.didomiRegion.toUpperCase():null},r={country:n.country||s.country||null,region:n.region||s.region||null};r.country&&"US"!==r.country?(0,le.Y)({country:r.country,region:null}):r.country&&r.region?(0,le.Y)({country:r.country,region:r.region}):(0,le.Y)({country:r.country,region:null})},ws=o(62846),As=o(35968),_s=o(99124),Ps=o(70008),Es=e=>{if(e){var s,{organizationUserId:r,organizationUserIdAuthAlgorithm:i,organizationUserIdAuthSid:o,organizationUserIdAuthSalt:a,organizationUserIdAuthDigest:u,organizationUserIdExp:l,organizationUserIdIv:d,isUnderage:c}=e||{};(0,n.MU)({user:(0,t.A)({},(null==(s=n.bK.value)?void 0:s.user)||{},(0,t.A)({organizationUserId:r,organizationUserIdAuthAlgorithm:i,organizationUserIdAuthSid:o,organizationUserIdAuthSalt:a,organizationUserIdAuthDigest:u,organizationUserIdExp:l,organizationUserIdIv:d},void 0!==c&&{isUnderage:c}))})}},Os=o(16382),ks=["notice.enable","notice.showDataProcessing","experiment.group","app.vendors.iab.version","app.alwaysDisplayActionButtons","user.externalConsent.value","sync.enabled"],Ls=()=>{var e="didomiConfig",t=window.location.href;if(!t.includes(e))return null;var n,s=(0,ze.vA)(t,e),r={};if(Object.prototype.hasOwnProperty.call(s,e))try{r=JSON.parse(s[e])}catch(t){console.error('Didomi - Invalid JSON from query-string parameter "'+e+'": '+t.message)}for(var i in s)if(i.startsWith(e+".")&&!i.includes("__proto__")&&!i.includes("constructor"))try{var o=JSON.parse(s[i]);(0,l.hZ)(r,i.replace(e+".",""),o)}catch(t){var a=s[i];(0,l.hZ)(r,i.replace(e+".",""),a)}return n=r,ks.reduce((e,t)=>{var s=(0,l.Jt)(n,t);return void 0!==s&&(e=e||{},(0,l.hZ)(e,t,s)),e},null)},Ts={configSpecificationVersion:1,environment:"prod",configVersion:1,lastUpdated:"2025-03-27T12:30:52Z",event:"metrics",samplingRate:1e-5,metrics:[{type:"usage",metric:"window-didomi-config",enabled:!0},{type:"usage",metric:"window-didomi-config-custom-vendors",enabled:!0},{type:"usage",metric:"window-didomi-config-custom-purposes",enabled:!0},{type:"usage",metric:"window-didomi-config-essential-purposes",enabled:!0},{type:"usage",metric:"window-didomi-config-disabled-purposes",enabled:!0},{type:"usage",metric:"window-didomi-config-iab",enabled:!0},{type:"usage",metric:"window-didomi-config-iab-restrictions",enabled:!0}]},Ds=()=>{var{didomiMetricsConfig:e}=window;return e&&"object"==typeof e?e:Ts},Us=[],Rs=null,Bs=()=>{if("hidden"===document.visibilityState&&Rs&&Us.length){var e=Ds(),t=Us;Us=[];var n=((e,t)=>{var n=new Map(e.metrics.map(t=>{var n;return[t.metric,null!=(n=t.samplingRate)?n:e.samplingRate]})),s=new Map;for(var r of t){var i=n.get(r.metric);if(!i)throw new Error("Sampling rate not found for metric "+r.metric);s.has(i)||s.set(i,[]),s.get(i).push(r)}return s})(e,t);for(var[s,r]of n)Rs(e.event,{metrics:r},s)}},Vs=e=>{var{type:t,metric:n,value:s}=e;try{((e,t,n)=>{var s=Us.find(t=>t.type===e.type&&t.metric===e.metric),r="usage"===t&&n<=0;return e.enabled&&!s&&!r})(((e,t,n)=>{var s=null==e?void 0:e.metrics.find(e=>e.type===t&&e.metric===n);if(!s)throw new Error("Metric config not found for type: "+t+" and metric: "+n);return s})(Ds(),t,n),t,s)&&Us.push({type:t,metric:n,value:s})}catch(e){console.error("Error adding metric: ",e)}};!function(e){e.WindowDidomiConfig="window-didomi-config",e.WindowDidomiConfigVendors="window-didomi-config-custom-vendors",e.WindowDidomiConfigCustomPurposes="window-didomi-config-custom-purposes",e.WindowDidomiConfigEssentialPurposes="window-didomi-config-essential-purposes",e.WindowDidomiConfigDisabledPurposes="window-didomi-config-disabled-purposes",e.WindowDidomiConfigIAB="window-didomi-config-iab",e.WindowDidomiConfigIABRestrictions="window-didomi-config-iab-restrictions"}(bs||(bs={})),function(e){e.Performance="performance",e.Usage="usage"}(Is||(Is={}));var Ns={WINDOW_DIDOMI_CONFIG:bs.WindowDidomiConfig,WINDOW_DIDOMI_CONFIG_CUSTOM_VENDORS:bs.WindowDidomiConfigVendors,WINDOW_DIDOMI_CONFIG_CUSTOM_PURPOSES:bs.WindowDidomiConfigCustomPurposes,WINDOW_DIDOMI_CONFIG_ESSENTIAL_PURPOSES:bs.WindowDidomiConfigEssentialPurposes,WINDOW_DIDOMI_CONFIG_DISABLED_PURPOSES:bs.WindowDidomiConfigDisabledPurposes,WINDOW_DIDOMI_CONFIG_IAB:bs.WindowDidomiConfigIAB,WINDOW_DIDOMI_CONFIG_IAB_RESTRICTIONS:bs.WindowDidomiConfigIABRestrictions},xs=(Is.Usage,Is.Performance,e=>{var t,n,s,r,i,o,a,u,l,d,c=[Ns.WINDOW_DIDOMI_CONFIG];null!=e&&null!=(t=e.app)&&null!=(n=t.vendors)&&n.custom&&c.push(Ns.WINDOW_DIDOMI_CONFIG_CUSTOM_VENDORS),null!=e&&null!=(s=e.app)&&s.customPurposes&&c.push(Ns.WINDOW_DIDOMI_CONFIG_CUSTOM_PURPOSES),null!=e&&null!=(r=e.app)&&r.essentialPurposes&&c.push(Ns.WINDOW_DIDOMI_CONFIG_ESSENTIAL_PURPOSES),null!=e&&null!=(i=e.app)&&i.disabledPurposes&&c.push(Ns.WINDOW_DIDOMI_CONFIG_DISABLED_PURPOSES),null!=e&&null!=(o=e.app)&&null!=(a=o.vendors)&&a.iab&&c.push(Ns.WINDOW_DIDOMI_CONFIG_IAB),null!=e&&null!=(u=e.app)&&null!=(l=u.vendors)&&null!=(d=l.iab)&&d.restrictions&&c.push(Ns.WINDOW_DIDOMI_CONFIG_IAB_RESTRICTIONS),(e=>{for(var t of e)Vs({type:"usage",metric:t,value:1})})(c)}),Ms=()=>{var e={},t=(0,Os.V)();null!=t&&t.config&&"object"==typeof(null==t?void 0:t.config)&&(0,l.zw)(e,t.config),window.didomiConfig&&"object"==typeof window.didomiConfig&&((0,l.zw)(e,window.didomiConfig),xs(window.didomiConfig));var n=Ls();n&&(0,l.zw)(e,n);var s=(e=>{var t;if("object"==typeof(null==e?void 0:e.configByCountry)&&null!=(t=le.h.value)&&t.country){var n,s=null==e?void 0:e.configByCountry[null==(n=le.h.value)?void 0:n.country.toUpperCase()];if(s)return s}})(e);s&&(e=(0,l.zw)(e,s));var r=(e=>{var t;if(null==e?void 0:e.version)return null==e||null==(t=e.regulation)?void 0:t.name;var n,s,r,i,o,a,u,l,d=(null==e?void 0:e.regulations)||(null==e||null==(n=e.website)?void 0:n.regulations)||(null==e||null==(s=e.app)?void 0:s.regulations)||{},c=(null==(r=d.gdpr)?void 0:r.additionalCountries)||[],p=Array.isArray(window.didomiGeoRegulations)?window.didomiGeoRegulations:[],v="US"===(null==(i=le.h.value)?void 0:i.country)&&"CA"===(null==(o=le.h.value)?void 0:o.region),h=!(null==d||null==(a=d.ccpa)||!a.enabled),f=!!d&&!!window.gdprAppliesGlobally||(null==c?void 0:c.includes(null==(u=le.h.value)?void 0:u.country))||(null==p?void 0:p.includes("gdpr")),g=!!d&&!!window.gdprAppliesGlobally||!1!==(null==d||null==(l=d.gdpr)?void 0:l.enabled);return v&&h?"ccpa":f&&g?"gdpr":null})(e);return r&&(0,l.hZ)(e,"regulation.name",r),e},Fs=(0,V.EW)(()=>{var e,n,s,r;return null!=(e=Ee.h.value)&&e.length?null==(n=Ee.h.value)||null==(s=n.map(e=>({[e.didomiId]:e.id})))||null==(r=s.filter(Boolean))?void 0:r.reduce((e,n)=>(0,t.A)({},e,n),{}):{}}),zs=o(43029),js={},Ws=e=>js[e];(0,V.QZ)(()=>{var e=zs.L.value;Object.values(js).forEach(t=>((e,t)=>{var n,s=!0===(null==t||null==(n=t.vendors[e.didomiId])?void 0:n.enabled);e.enabled!==s&&(e.enabled=s,e.listeners.forEach(t=>t&&t({id:e.didomiId,enabled:s})))})(t,e))});class Gs{constructor(e){this.setCurrentUserStatus=e,this.initialUserStatus=zs.L.value,this.pendingUpdates={purposes:{},vendors:{}}}enablePurpose(e){var t;return this.initialUserStatus.purposes.hasOwnProperty(e)?(null!=(t=this.pendingUpdates.purposes)[e]||(t[e]={}),this.pendingUpdates.purposes[e].enabled=!0,this):(console.error("Didomi SDK - enablePurpose ignored due to invalid purpose:",e),this)}enablePurposes(e){return e.forEach(e=>this.enablePurpose(e)),this}disablePurpose(e){var t;return this.initialUserStatus.purposes.hasOwnProperty(e)?(null!=(t=this.pendingUpdates.purposes)[e]||(t[e]={}),this.pendingUpdates.purposes[e].enabled=!1,this):(console.error("Didomi SDK - disablePurpose ignored due to invalid purpose:",e),this)}disablePurposes(e){return e.forEach(e=>this.disablePurpose(e)),this}enableVendor(e){var t;return this.initialUserStatus.vendors.hasOwnProperty(e)?(null!=(t=this.pendingUpdates.vendors)[e]||(t[e]={}),this.pendingUpdates.vendors[e].enabled=!0,this):(console.error("Didomi SDK - enableVendor ignored due to invalid vendor:",e),this)}enableVendors(e){return e.forEach(e=>this.enableVendor(e)),this}disableVendor(e){var t;return this.initialUserStatus.vendors.hasOwnProperty(e)?(null!=(t=this.pendingUpdates.vendors)[e]||(t[e]={}),this.pendingUpdates.vendors[e].enabled=!1,this):(console.error("Didomi SDK - disableVendor ignored due to invalid vendor:",e),this)}disableVendors(e){return e.forEach(e=>this.disableVendor(e)),this}commit(){try{return this.setCurrentUserStatus((0,t.A)({},(0,l.zw)((0,l.Go)(zs.L.value),this.pendingUpdates),{action:"external"}))}catch(e){return console.error("Didomi SDK - Failed to update user status:",e),!1}}}var Js=o(72714),qs=o(15427),Ks=o(87931),Hs=o(51373),Zs=o(74283),Ys=e=>{var{includeAllLegalBasis:t=!1,requiredPurposeIds:n,requiredPurposeIdsBasedOnConsent:s,essentialPurposeIds:r,customPurposesIds:i,disabledPurposeIds:o,userStatus:a,isConsentRequired:u}=e,l=[],d=[],c=[],p=t?n:(0,g.$)([...i.filter(e=>!o.includes(e)),...s]);for(var v of p){var h=s.includes(v)?a.byLegalBasis.consent.purposesById[v]:a.byLegalBasis.li.purposesById[v];r.includes(v)||!0===h?l.push(v):!1===h?c.push(v):u?d.push(v):l.push(v)}return{allowed:l,unknown:d,denied:c}},$s=o(33207),Qs=[],Xs=e=>{var n,s,r;if(null==(n=Qs)||!n.length)return Promise.resolve();var i=(0,$s.R)({requiredVendors:e.requiredVendors,userStatus:e.userStatus,isConsentRequired:e.isConsentRequired,processingRules:"mixed"===(null==e||null==(s=e.regulation)||null==(r=s.group)?void 0:r.name)?["legitimate_interest"]:["consent","legitimate_interest"]}),o=(e=>{var{experiment:t,requiredPurposeIds:n,requiredPurposeIdsBasedOnConsent:s,essentialPurposeIds:r,userStatus:i,isConsentRequired:o,customPurposesIds:a,disabledPurposeIds:u,regulation:l,consentString:d,vendorIdsMap:c,vendorByStatus:p={vendorsByStatusWithPurposes:{allowed:[],unknown:[],denied:[]},vendorsByStatusWithoutPurposes:{allowed:[],unknown:[],denied:[]}}}=e,{vendorsByStatusWithPurposes:v,vendorsByStatusWithoutPurposes:h}=p,f=Ys({requiredPurposeIds:n,requiredPurposeIdsBasedOnConsent:s,essentialPurposeIds:r,userStatus:i,isConsentRequired:o,customPurposesIds:a,disabledPurposeIds:u,includeAllLegalBasis:!1}),g=Ys({requiredPurposeIds:n,requiredPurposeIdsBasedOnConsent:s,essentialPurposeIds:r,userStatus:i,isConsentRequired:o,customPurposesIds:a,disabledPurposeIds:u,includeAllLegalBasis:!0});return{didomiRegulationName:(null==l?void 0:l.name)||"",didomiGDPRApplies:"gdpr"===(null==l?void 0:l.name)?1:0,didomiIABConsent:"gdpr"===(null==l?void 0:l.name)&&d||"",didomiVendorsConsent:(0,Hs.z)(v.allowed),didomiVendorsConsentUnknown:(0,Hs.z)(v.unknown),didomiVendorsConsentDenied:(0,Hs.z)(v.denied),didomiPurposesConsent:(0,Hs.z)(f.allowed),didomiPurposesConsentUnknown:(0,Hs.z)(f.unknown),didomiPurposesConsentDenied:(0,Hs.z)(f.denied),didomiVendorsRawConsent:(0,Hs.z)(h.allowed),didomiVendorsRawConsentUnknown:(0,Hs.z)(h.unknown),didomiVendorsRawConsentDenied:(0,Hs.z)(h.denied),didomiExperimentId:(null==t?void 0:t.id)||"",didomiExperimentUserGroup:(null==t?void 0:t.group)||"",didomiVendorsEnabled:(0,Hs.z)(v.allowed.map(e=>c[(0,Zs.b)(e)])),didomiVendorsDisabled:(0,Hs.z)(v.denied.map(e=>c[(0,Zs.b)(e)])),didomiVendorsUnknown:(0,Hs.z)(v.unknown.map(e=>c[(0,Zs.b)(e)])),didomiPurposesEnabled:(0,Hs.z)(g.allowed),didomiPurposesDisabled:(0,Hs.z)(g.denied),didomiPurposesUnknown:(0,Hs.z)(g.unknown)}})((0,t.A)({vendorByStatus:i},e));return Qs.forEach(n=>n.update((0,t.A)({customVariables:o},e))),Promise.resolve()},er=o(98074),tr=function(){var t=(0,e.A)(function*(e){var{ready:t=!0,consent:n=!0}=e;n&&(0,B.on)("internal.consent.changed",()=>{Xs({type:"didomi-consent-changed",hasMadeAnyChoice:q.a.value.hasMadeAnyChoice,requiredVendors:Ee.h.value,vendorIdsMap:z.C.value,experiment:ge.value,requiredPurposeIds:A.t.value.purposeIds,requiredPurposeIdsBasedOnConsent:A.t.value.purposeIdsBasedOnConsent,essentialPurposeIds:I.T.value,customPurposesIds:kt.Y.value,disabledPurposeIds:er.B.value,userStatus:q.a.value,isConsentRequired:$.y.value,regulation:J.r.value,consentString:S.M.value,allowedCategories:X.value})}),t&&(yield Xs({type:"didomi-ready",hasMadeAnyChoice:q.a.value.hasMadeAnyChoice,requiredVendors:Ee.h.value,vendorIdsMap:z.C.value,experiment:ge.value,requiredPurposeIds:A.t.value.purposeIds,requiredPurposeIdsBasedOnConsent:A.t.value.purposeIdsBasedOnConsent,essentialPurposeIds:I.T.value,customPurposesIds:kt.Y.value,disabledPurposeIds:er.B.value,userStatus:q.a.value,isConsentRequired:$.y.value,regulation:J.r.value,consentString:S.M.value,allowedCategories:X.value}))});return function(e){return t.apply(this,arguments)}}(),nr=o(56067),sr=o(73307),rr=[],ir=e=>{var{ready:t=!0,consent:n=!0}=e,s=e=>{var t;t={event:e,isConsentRequired:$.y.value,currentUserStatus:zs.L.value,userStatus:q.a.value},rr.forEach(e=>e.setConsentStatus((e=>({event:e.event,isConsentRequired:e.isConsentRequired,currentUserStatus:e.currentUserStatus,userStatus:e.userStatus}))(t)))};$.y.value?(t&&s("pageload"),n&&(0,B.on)("internal.consent.changed",()=>{s("consent-changed")})):s("consent-not-required")},or=o(41981),ar=o(23369);i("init-started",{detail:"Initialization of the Didomi SDK started"});var ur={},lr={},dr={},cr=!1,pr=[];function vr(e){try{Rs=(t,n,s)=>e.EventsService.send(t,n,s,!0),document.addEventListener("visibilitychange",Bs)}catch(e){console.warn("Failed to initialize metrics package:",e)}}function hr(e){var t,s,r,a,l;e.SiteConfigService.configure(n.bK.value);var d,c,p,v,h,f=(d=n.bK.value.tagManager,new Promise(e=>{var t=(0,qs.getApplicableProviders)(d);Promise.all([...t].map(e=>(0,Ks.loadProviderModule)(e,{dataLayerName:null==d?void 0:d.dataLayerName}))).then(t=>{Qs=[...t].filter(Boolean),e()}).catch(t=>{console.error("Error setting up tag managers:",t),e()})})),g=(c=n.bK.value.integrations,new Promise(e=>{try{var t=(0,nr.getApplicableProviders)(c);Promise.all([...t].map(e=>(0,sr.loadProviderModule)(e,c))).then(t=>{var n=(rr=[...t].filter(Boolean)).length>0;n&&(0,B.Ic)("internal.integrations.loaded"),e(n)}).catch(t=>{console.error("Error setting up integrations:",t),e(!1)})}catch(t){console.error("Error setting up integrations:",t),e(!1)}}));if(null!=(t=n.bK.value)&&null!=(s=t.integrations)&&s.gpp&&pr.push((p=!1,v=!1,h=!1,(0,B.Oo)("consent.changed",()=>{p=!0}),(0,B.Oo)("notice.shown",()=>{v=!0}),(0,B.Oo)("notice.hidden",()=>{h=!0}),(0,B.Oo)("preferences.shown",()=>{v=!0}),(0,B.Oo)("preferences.hidden",()=>{h=!0}),new Promise(e=>{o.e("gpp-library").then(o.t.bind(o,42195,23)).then(t=>{var s,r,{initGPPCmpApi:i,cmpUIShownHandler:o,cmpUIHiddenHandler:a,updateGPP:u,addGPPStringUpdateListener:l,getGppString:d}=t;i({gppConfig:null==(s=n.bK.value)||null==(r=s.integrations)?void 0:r.gpp,cmpID:M.a.defaultCMPID,cmpVersion:M.a.defaultCMPVersion,yieldToMain:!0}),(0,Js.K)(d()),l(Js.K),u(zs.L.value),p&&u(zs.L.value),h?a():v&&o(),(0,B.on)("consent.changed",()=>{u(zs.L.value)}),(0,B.on)("notice.shown",o),(0,B.on)("notice.hidden",a),(0,B.on)("preferences.shown",o),(0,B.on)("preferences.hidden",a),e()})}))),!window.gdprAppliesGlobally||null!=(r=n.bK.value)&&r.version||H("gdprAppliesGlobally-v0"),e.RemoteConsentService.getRemoteConsentsFromAPI({mergeUsers:!0}).then(()=>{e.ComponentsService.initComponentsModule()}),e.SignatureService.checkUnsignedConsent(),"none"===(null==(a=J.r.value)?void 0:a.name))return e.CCPAService.run(),qe(),pr.push(g.then(e=>e&&ir({ready:!0,consent:!1})).then(()=>f).then(()=>tr({ready:!0,consent:!1}))),window.Didomi=ur,ms(lr),void Promise.all(pr).then(()=>{hs(ur)});if(de.M.value)ts("ctv");else if(null!=(l=F.G.value)&&l.isUnderage)ts("underage");else{var m;ts(null,{regulation:null==(m=J.r.value)?void 0:m.name})}(0,ys.F)(()=>{e.StorageService.initStorages(()=>{var t,s=e.StorageService.initStoreFromStorage(),r=s.didomiTokenCreatedFromIABToken,o=s.token;e.WebsiteService.shouldNoticeBeShown()&&e.UIService.preLoad(),e.ConsentService.loadExternalConsent(),ee(),"test"===(null==(t=ge.value)?void 0:t.group)&&ur.configure(ge.value.config,!0),(0,ys.F)(()=>{var t=u.J3.getState();(()=>{var e,t;if(null==(e=n.bK.value)?void 0:e.version)return"ccpa"===(null==(t=J.r.value)?void 0:t.name);var s,r,i,o,a,u,l=(null==(s=n.bK.value)?void 0:s.regulations)||(null==(r=n.bK.value)||null==(i=r.website)?void 0:i.regulations)||(null==(o=n.bK.value)||null==(a=o.app)?void 0:a.regulations)||{};return!(null==l||null==(u=l.ccpa)||!u.enabled)})()&&(e.CCPAService.run(),H("ccpa")),"tv"===(0,n.On)("mode")&&(0,ws.a)(),!0===t.sync.delayNotice?e.SyncService.run(()=>{qe(),e.WebsiteService.determineConsentNoticeStatus()},!0):(e.SyncService.run(void 0,!0),qe(),e.WebsiteService.determineConsentNoticeStatus()),pr.push(g.then(e=>{e&&ir({ready:!0,consent:!0})}).then(()=>f).then(()=>tr({ready:!0,consent:!0}))),cr=!0,e.EventsService.sendPageview(),window.Didomi=ur,ms(lr),i("init-finished",{detail:"Initialization of the Didomi SDK finished"}),e.UIService.isRenderScheduled()?(0,B.Oo)("ui.ready",()=>{Promise.all(pr).then(()=>{i("notice-shown",{detail:"Didomi notice shown"}),hs(ur)})}):Promise.all(pr).then(()=>{hs(ur)}),r&&e.ConsentService.sendEvents(o,!0)},!0)})},!0)}function fr(i){Hn(r.H.value),window.addEventListener("pagehide",()=>{i.EventsService.sendPageview(!0)}),Object.assign(lr,{getConfig(){return n.bK.value},getUserConsentStatus(e,t){return void 0===t&&(t=null),H("get-user-consent-status"),((e,t)=>!(!q.a.value.byLegalBasis.consent.purposesById[e]&&!I.T.value.includes(e)||!q.a.value.byLegalBasis.consent.vendorsById[t])||!1!==q.a.value.byLegalBasis.consent.purposesById[e]&&!1!==q.a.value.byLegalBasis.consent.vendorsById[t]&&void 0)(e,t)},getUserConsentStatusForPurpose(e){return H("get-user-consent-status-for-purpose"),q.a.value.byLegalBasis.consent.purposesById[e]},getUserConsentStatusForVendor(e){return H("get-user-consent-status-for-vendor"),i.ConsentService.getUserConsentStatusForAllPurposesByVendor(e)},getUserStatus(){return H("get-user-status"),i.ConsentService.getUserStatus()},getCurrentUserStatus(){var e;return H("get-current-user-status"),null!=(e=or.K.value)&&e.length&&H("get-current-user-status-with-custom-vendors"),zs.L.value}}),Object.assign(dr,{CCPA:{getDoNotSellStatus(){return H("ccpa-get-do-not-sell-status"),i.CCPAService.getDoNotSellStatus()},setDoNotSellStatus(e){return H("ccpa-set-do-not-sell-status"),i.CCPAService.setDoNotSellStatus(e)}},getUserAuthToken(){return tt.value},setUserAuthToken(e){return nt(e)},isRegulationApplied(e){var t;return(null==(t=J.r.value)?void 0:t.name)===e},isConsentRequired(){return H("is-consent-required"),$.y.value},requestAuthenticationURL(e){var{authProviderId:t}=void 0===e?{}:e;return i.RemoteConsentService.requestAuthenticationURL({authProviderId:t})},sendEmailLogin(e,t){return H("send-email-login"),i.RemoteConsentService.sendLogin({value:e,channel:"email",params:t})},sendMessageLogin(e){var{value:t,channel:n,params:s}=e;return H("send-message-login"),i.RemoteConsentService.sendLogin({value:t,channel:n,params:s})},sendLogin(e){var{value:t,channel:n,params:s}=e;return i.RemoteConsentService.sendLogin({value:t,channel:n,params:s})},verifyOtpCode(e){var{code:t,organizationUserId:n,authProviderId:s}=e;return i.RemoteConsentService.verifyOtpCode({code:t,organizationUserId:n,authProviderId:s})},getRemoteConsentsFromAPI(){return i.RemoteConsentService.getRemoteConsentsFromAPI()},Purposes:i.ConsentService.Purposes,on(e,t){return e=e.toLowerCase(),(0,ar.Yj)(e)?(0,B.on)(e,t):(console.error('Didomi SDK - Cannot subscribe to unknown event type "'+e+'"'),null)},once(e,t){if(e=e.toLowerCase(),(0,ar.Yj)(e))return(0,B.Oo)(e,t);console.error('Didomi SDK - Cannot subscribe to unknown event type "'+e+'"')},off(e,t){if(e=e.toLowerCase(),(0,ar.Yj)(e))return(0,B.pQ)(e,t);console.error('Didomi SDK - Cannot unsubscribe from unknown event type "'+e+'"')},emit(e){if(e=e.toLowerCase(),(0,ar.lR)(e)){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{var n,s,r;if(void 0===e||void 0===t)return-1;var i=Ws(e);if(i)return i.listeners.push(t),i.listeners.length-1;var o=null==(n=Fs.value)?void 0:n[e];return void 0===o?-1:(i={vendorId:o,didomiId:e,enabled:!0===(null==(s=zs.L.value)||null==(r=s.vendors[e])?void 0:r.enabled),listeners:[t]},js[e]=i,0)})(e,t)},removeVendorStatusListener(e,t){return((e,t)=>{if(void 0===t||t<0||void 0===e)return-1;var n=Ws(e);return n?n.listeners.length<=t||void 0===n.listeners[t]?-1:(n.listeners[t]=void 0,t):-1})(e,t)},setUserStatusForAll(e){var{purposesConsentStatus:t,purposesLIStatus:n,vendorsConsentStatus:s,vendorsLIStatus:r,created:o,updated:a,action:u}=e;return i.ConsentService.setUserStatusForAll({purposesConsentStatus:t,purposesLIStatus:n,vendorsConsentStatus:s,vendorsLIStatus:r,created:o,updated:a,action:u})},setUserConsentStatus(e,t,n){return H("set-user-consent-status"),i.ConsentService.setUserConsentStatusDeprecated(e,t,n)},setUserConsentStatusForAll(e,t,n,s){return void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===s&&(s=[]),i.ConsentService.setUserConsentStatus(e,t,n,s)},setRemoteConsentStatusForAll(e){return i.RemoteConsentService.setRemoteConsentStatusForAll(e)},getUserConsentStatusForAll(){return{purposes:{enabled:q.a.value.byLegalBasis.consent.purposes.enabled,disabled:q.a.value.byLegalBasis.consent.purposes.disabled},vendors:{enabled:q.a.value.byLegalBasis.consent.vendors.enabled,disabled:q.a.value.byLegalBasis.consent.vendors.disabled}}},getRemoteConsentStatusForAll(){return i.RemoteConsentService.getRemoteConsentStatusForAll()},getRemoteConsentEventsForAll(e){return i.RemoteConsentService.getRemoteConsentEventsForAll(e)},refreshRemoteConsentsForAll(){return i.RemoteConsentService.refreshRemoteConsentsFromAPI()},getPendingConsents(){return i.RemoteConsentService.getPendingConsents()},savePendingConsents(e){return i.RemoteConsentService.savePendingConsents(e)},resetPendingConsents(){return i.RemoteConsentService.resetPendingConsents()},saveConsentForEntityById(e,t,n,s,r,o,a,u,l,d){return i.RemoteConsentService.saveConsentForEntityById(e,t,n,s,r,o,a,u,l,d)},setPendingConsentForEntityById(e,t,n,s){return i.RemoteConsentService.setPendingConsentForEntityById(e,t,n,s)},openTransaction(){return H("open-transaction"),new d.A(i.ConsentService.getUserStatus.bind(i.ConsentService),i.ConsentService.setUserStatus.bind(i.ConsentService))},openCurrentUserStatusTransaction(){return new Gs(i.ConsentService.setCurrentUserStatus.bind(i.ConsentService))},isUserAuthenticated(){return i.RemoteConsentService.isUserAuthenticated()},getAuthProtocol(){return H("get-auth-protocol"),i.RemoteConsentService.getAuthProtocol()},isTCFEnabled(){return ve.X.value},configure(e,t){void 0===t&&(t=!1),t||H("configure"),(0,n.MU)(e),i.SiteConfigService.configure(e),cr&&i.WebsiteService.determineConsentNoticeStatus()},notice:{configure(e){u.fh.setConsentNoticeConfig(e)},show(){i.NoticeService.show()},hide(){i.NoticeService.hide()},isVisible(){return i.NoticeService.isVisible()},showDataProcessing(){var e;return null==(e=ye.l.value)?void 0:e.showDataProcessing}},preferences:{hide(){i.PreferencesService.hide()},show(e){i.PreferencesService.show(e)},isVisible(){return i.PreferencesService.isVisible()}},setUserAgreeToAll(e){void 0===e&&(e="external"),i.WebsiteService.setUserAgreeToAll(e)},setUserDisagreeToAll(e){void 0===e&&(e="external"),i.WebsiteService.setUserDisagreeToAll(e)},isUserConsentStatusPartial(){return H("is-user-consent-status-partial"),i.WebsiteService.isUserConsentStatusPartial()},setConfigParameter(e,t){return(0,n.ld)(e,t)},theme:{set(e,t){H("theme-set");var s=e||t;(0,n.MU)({theme:{color:s}})}},reset(e){void 0===e&&(e=null),i.StorageService.reset(e)},getRequiredVendorIds(){return b.R.value},getRequiredVendors(e){return(e=>{var t,n;return null==(t=Ee.h.value)||null==(n=t.filter(t=>!e||t.namespace===e))?void 0:n.filter(e=>"object"==typeof e&&!!e)})(e)},getVendorById(e){var t;return null==(t=m.o.value)?void 0:t[e]},getVendorByNumericId(e){return(e=>{var t;return null==(t=m.o.value)?void 0:t[Ut.value.numberIdToVendorMap[e]]})(e)},getVendorNumericId(e){var t,n;return null==(t=Ut.value)||null==(n=t.vendorToNumericIdMap)?void 0:n[e]},getVendors(){return ht.E.value},getRequiredPurposeIds(){return(0,g.$)([...A.t.value.purposeIdsBasedOnConsent,...kt.Y.value])},getRequiredPurposes(e){return(0,g.$)([...A.t.value.purposeIdsBasedOnConsent,...kt.Y.value]).map(e=>A.t.value.purposes.find(t=>t.id===e)).filter(t=>!e||(null==t?void 0:t.namespace)===e)},getPurposeById(e){return(0,As.z)(e)},getPurposes(){return Et.m.value},getPurposeByNumericId(e){var t,n,s=null==(t=Lt.value)?void 0:t.numberIdToPurposeMap[e];return(null==(n=Et.m.value)?void 0:n[s])||null},getPurposeNumericId(e){var t,n,s;return null==(t=Et.m.value)||null==(n=t[e])||null==(s=n.namespaces)?void 0:s.num},getLanguage(){return r.H.value},getPurposesBasedOnConsent(){return(0,g.$)([...A.t.value.purposeIdsBasedOnConsent,...I.T.value]).reduce((e,n)=>{var s,r=null==(s=Et.m.value)?void 0:s[n];return r&&e.push((0,t.A)({},r,{legalBasis:"consent"})),e},[])},getPurposesBasedOnLegitimateInterest(){return A.t.value.purposesBasedOnLI},getPurposesFromAllLegalBases(){return[...A.t.value.purposesBasedOnConsent,...A.t.value.purposesBasedOnLI]},getCategories(){var e;return null==(e=Se.v.value)?void 0:e.categories},navigate(e){console.info("Didomi - Ignoring call to navigate. Ensure that the UI is displayed and that the SDK is ready by wrapping your calls in window.didomiOnReady callbacks",e)},getTranslationAsHTML(){return console.error("Didomi - The UI module needs to be loaded before using the getTranslationAsHTML function"),null},shouldConsentBeCollected(){return i.WebsiteService.shouldConsentBeCollected()},shouldReconsentBeEnforced(){return i.WebsiteService.shouldReconsentBeEnforced()},getExperiment(){return me.value},version:"d4ee574ce72cb26fbe235eac540be8dbf938e9c2-2026-03-11T13:15:33.065Z",getCedFactory(){return _t.g},useCedFactory(e){return t=e,void(_t.g?t(_t.g):(0,B.on)("ced.loaded",()=>{t(_t.g)}));var t},setUser(e){i.SyncService.clearLastSyncDate();var{organizationUserId:t,organizationUserIdAuthAlgorithm:n,organizationUserIdAuthSid:s,organizationUserIdAuthSalt:r,organizationUserIdAuthDigest:o,organizationUserIdExp:a,organizationUserIdIv:u,isUnderage:l}=e||{};l&&F.G.value.isUnderage!==l&&i.UIService.reloadUIModule("underage",{show:!0}),Es({organizationUserId:t,organizationUserIdAuthAlgorithm:n,organizationUserIdAuthSid:s,organizationUserIdAuthSalt:r,organizationUserIdAuthDigest:o,organizationUserIdExp:a,organizationUserIdIv:u,isUnderage:l})},syncUser(){return new Promise(e=>{i.SyncService.run(t=>e(t),!1)})},pushUserStatusToServer(){return new Promise(e=>{if(F.G.value.organizationUserId){var{purposes:t,purposes_li:n,vendors:s,vendors_li:r,created:o,updated:a,dns:u}=C.II.value;i.EventsService.sendConsentGiven({purposes:t,vendors:s,created:o,updated:a,dns:!0===u||void 0,from_euconsent:!1,action:"replay",purposes_li:n,vendors_li:r},!1)}e()})},clearUser(){return new Promise(e=>{i.SyncService.clearLastSyncDate(),Es({organizationUserId:void 0,organizationUserIdAuthAlgorithm:void 0,organizationUserIdAuthSid:void 0,organizationUserIdAuthSalt:void 0,organizationUserIdAuthDigest:void 0,organizationUserIdExp:void 0,organizationUserIdIv:void 0,isUnderage:!1}),e()})},isUserStatusPartial(){return i.WebsiteService.isUserStatusPartial()},shouldUserStatusBeCollected(){return i.WebsiteService.shouldUserStatusBeCollected()},getCMModule(){return(0,e.A)(function*(){return o.e("src_sdk_compliance-monitoring_index_js").then(o.bind(o,22362))})()}}),Object.assign(ur,(0,t.A)({},lr,dr)),(()=>{if(!window.didomiEventListeners||!0!==window.didomiEventListeners.stub){if(Array.isArray(window.didomiEventListeners))for(var e of window.didomiEventListeners)"object"==typeof e&&"string"==typeof e.event&&e.event&&"function"==typeof e.listener&&Ss(e.event,e.listener);window.didomiEventListeners={stub:!0,push:function(){for(var e=arguments.length,t=new Array(e),n=0;n{hr(i)}),vr(i)}function gr(){!function(e){if(e.didomiConfig&&Object.hasOwn(e,"didomiConfig")&&Object.hasOwn(e.didomiConfig,"sdkPath")&&e.didomiConfig.sdkPath){var t="sdk/d4ee574ce72cb26fbe235eac540be8dbf938e9c2/modern/";e.didomiConfig.sdkPath.endsWith("/")?o.p=e.didomiConfig.sdkPath+t:o.p=e.didomiConfig.sdkPath+"/"+t}}(window),Cs(),(0,n.MU)(Ms()),function(e,t,n){var s={};s.SiteConfigService=new Jn(e,t,s),s.EventsService=new Ie(e,t,s),s.NoticeService=new Ae(e,t,s),s.PreferencesService=new Pe(e,t,s),s.ConsentService=new se(e,t,s),s.CCPAService=new Fn(e,t,s),s.WebsiteService=new Ke(e,t,s),s.LocalStoreService=new Ye(e,t,s),s.RemoteConsentService=new rt(e,t,s),s.StorageService=new mn(e,t,s),s.UIService=new ns(e,t,s),s.ComponentsService=new ss(e,t,s),s.SyncService=new us(e,t,s),s.MixedRegulationService=new cs(e,t,s),s.SignatureService=new ps(e,t,s),Promise.all([Fe(),new Promise(e=>{Promise.resolve().then(o.bind(o,11930)).then(t=>{Re=t,e()})})]).then(()=>{!function(e){for(var t in e)"function"==typeof e[t].init&&e[t].init()}(s),n&&n(s)})}(u.J3,u.fh,fr)}if(document.body)gr();else var mr=setInterval(()=>{document.body&&(clearInterval(mr),gr())},1e3);var br=ur}(),window.Didomi=a.default}();